Skip to content

Commit f314c7b

Browse files
authored
Update build.yml
1 parent 8c25684 commit f314c7b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Build (Windows / macOS / Linux)
22

33
on:
44
workflow_call:
5+
inputs:
6+
project_dir:
7+
required: false
8+
type: string
9+
default: "."
510

611
jobs:
712
build:
@@ -11,6 +16,9 @@ jobs:
1116
os: [windows-latest, ubuntu-latest, macos-latest, macos-15-intel]
1217

1318
runs-on: ${{ matrix.os }}
19+
defaults:
20+
run:
21+
working-directory: ${{ inputs.project_dir }}
1422

1523
steps:
1624
- name: Checkout repository

0 commit comments

Comments
 (0)