Skip to content

Commit df33e07

Browse files
committed
chore(libheifactions)#: Add working directories since cd doesn't stick per step
1 parent aba351c commit df33e07

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/test-action.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,20 @@ jobs:
2828
id: buildoutput
2929
run: echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
3030

31-
- name: CD into build directory
32-
run: cd build
33-
3431
- name: Configure CMake
35-
run: cmake --preset=release-noplugins ${{ github.workspace }}
32+
working-directory: ${{ steps.buildoutput.outputs.build-output-dir }}
33+
run: cmake --preset=release-noplugins ..
3634

3735
- name: Build libheif
36+
working-directory: ${{ steps.buildoutput.outputs.build-output-dir }}
3837
run: make -j$(grep -c processor /proc/cpuinfo)
3938

4039
- name: "[Debug] List build directory contents again"
40+
working-directory: ${{ steps.buildoutput.outputs.build-output-dir }}
4141
run: ls -lah
4242

4343
- name: "[Debug] List libheif directory"
44+
working-directory: ${{ steps.buildoutput.outputs.build-output-dir }}
4445
run: ls -lah ./libheif
4546

4647
- name: Archive and put a pretty bow on it

0 commit comments

Comments
 (0)