Skip to content

Commit 0a86e21

Browse files
committed
replace hardcoded paths by variable ones in upload-artifact steps
1 parent a5f77c5 commit 0a86e21

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build_and_test.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@ jobs:
6868
if: failure()
6969
with:
7070
name: ${{ format('Ubuntu {0}, {1}', matrix.UBUNTU_VERSION, matrix.ARCH) }} CMakeCache
71-
path: build/CMakeCache.txt
71+
path: ${{ env.FANS_BUILD_DIR }}/CMakeCache.txt
7272
- uses: actions/upload-artifact@v4
7373
if: failure()
7474
with:
7575
name: ${{ format('Ubuntu {0}, {1}', matrix.UBUNTU_VERSION, matrix.ARCH) }} CMakeLogs
76-
path: 'build/CMakeFiles/*.log'
76+
path: '${{ env.FANS_BUILD_DIR }}/CMakeFiles/*.log'
7777
- uses: actions/upload-artifact@v4
7878
if: failure()
7979
with:
8080
name: ${{ format('Ubuntu {0}, {1}', matrix.UBUNTU_VERSION, matrix.ARCH) }} CompileCommands
81-
path: build/compile_commands.json
81+
path: ${{ env.FANS_BUILD_DIR }}/compile_commands.json
8282

8383
- name: Compile
8484
run: |
@@ -99,4 +99,4 @@ jobs:
9999
if: failure()
100100
with:
101101
name: ${{ format('Ubuntu {0}, {1}', matrix.UBUNTU_VERSION, matrix.ARCH) }} CTest logs
102-
path: build/Testing/Temporary/LastTest.log
102+
path: ${{ env.FANS_BUILD_DIR }}/Testing/Temporary/LastTest.log

0 commit comments

Comments
 (0)