Skip to content

Commit 07fbdbb

Browse files
committed
ci: Fix more working-directory handling
1 parent 928feaf commit 07fbdbb

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/actions/extract-symbol-graphs/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ runs:
3535
mkdir -p "$TARGET-symbol-graphs"
3636
find symbol-graphs -name "$TARGET*.symbols.json" -exec cp {} $TARGET-symbol-graphs ';'
3737
shell: bash
38-
working-directory: ${{ inputs.working-directory }}
38+
working-directory: ${{ github.workspace }}/${{ inputs.working-directory }}
3939
env:
4040
TARGET: ${{ inputs.target }}
4141

@@ -65,18 +65,18 @@ runs:
6565
mkdir -p "$TARGET-symbol-graphs"
6666
find /tmp/data -name "$TARGET*.symbols.json" -exec cp {} $TARGET-symbol-graphs ';'
6767
shell: bash
68-
working-directory: ${{ inputs.working-directory }}
68+
working-directory: ${{ github.workspace }}/${{ inputs.working-directory }}
6969
env:
7070
TARGET: ${{ inputs.target }}
7171
DEVICE_TYPE: ${{ inputs.xcodebuild-device-type }}
7272

7373
- name: Compress symbol graphs
7474
uses: a7ul/tar-action@v1.1.0
7575
with:
76-
cwd: ${{ inputs.working-directory }}
76+
cwd: ${{ github.workspace }}/${{ inputs.working-directory }}
7777
command: c
7878
files: ./${{ inputs.target }}-symbol-graphs
79-
outPath: ../${{ inputs.target }}-symbol-graphs.tar.gz
79+
outPath: ${{ github.workspace }}/${{ inputs.target }}-symbol-graphs.tar.gz
8080

8181
- name: Upload symbol graphs
8282
uses: actions/upload-artifact@v4

.github/workflows/build-test-and-docs.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ jobs:
2626

2727
- name: Build SwiftCrossUI
2828
run: swift build --target SwiftCrossUI
29-
working-directory: Examples
29+
working-directory: ./Examples
3030

3131
- name: Build AppKitBackend and extract symbol graphs
3232
uses: ./.github/actions/extract-symbol-graphs
3333
with:
3434
target: AppKitBackend
3535
upload: true
36-
working-directory: Examples
36+
working-directory: ./Examples
3737

3838
- name: Build other targets and examples
3939
run: |
@@ -214,34 +214,34 @@ jobs:
214214

215215
- name: Build SwiftCrossUI
216216
run: swift build --target SwiftCrossUI
217-
working-directory: Examples
217+
working-directory: ./Examples
218218

219219
- name: Build GtkBackend and extract symbol graphs
220220
if: ${{ matrix.os == 'ubuntu-24.04' }}
221221
uses: ./.github/actions/extract-symbol-graphs
222222
with:
223223
target: GtkBackend
224224
upload: true
225-
working-directory: Examples
225+
working-directory: ./Examples
226226
- name: Build GtkBackend
227227
if: ${{ matrix.os != 'ubuntu-24.04' }}
228228
run: swift build --target GtkBackend
229-
working-directory: Examples
229+
working-directory: ./Examples
230230

231231
- name: Build Gtk3Backend and extract symbol graphs
232232
if: ${{ matrix.os == 'ubuntu-24.04' }}
233233
uses: ./.github/actions/extract-symbol-graphs
234234
with:
235235
target: Gtk3Backend
236236
upload: true
237-
working-directory: Examples
237+
working-directory: ./Examples
238238
- name: Build Gtk3Backend
239239
if: ${{ matrix.os != 'ubuntu-24.04' }}
240240
run: swift build --target Gtk3Backend
241-
working-directory: Examples
241+
working-directory: ./Examples
242242

243243
- name: Build examples
244-
working-directory: Examples
244+
working-directory: ./Examples
245245
run: |
246246
swift build --target CounterExample && \
247247
swift build --target ControlsExample && \

0 commit comments

Comments
 (0)