Skip to content

Commit 730e80a

Browse files
committed
Tar the build folder to retain
1 parent a3cc3b9 commit 730e80a

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,18 @@ jobs:
3434
- name: build
3535
id: build
3636
run: cmake --build build --config Debug
37-
- name: Upload CMake build directory
37+
- name: Archive CMake build directory
38+
if: steps.build.outcome == 'success'
39+
run: tar -czf build.tar.gz build
40+
- name: Upload CMake build archive
3841
if: steps.build.outcome == 'success'
3942
uses: actions/upload-artifact@v7
4043
with:
4144
name: cmake-build-ubuntu
42-
path: build
45+
path: build.tar.gz
4346
if-no-files-found: error
4447
retention-days: 5
48+
archive: false
4549

4650
run_tests:
4751
timeout-minutes: 60
@@ -90,11 +94,13 @@ jobs:
9094
fi
9195
- name: setup chrome
9296
uses: browser-actions/setup-chrome@v2
93-
- name: Download CMake build directory
97+
- name: Download CMake build archive
9498
uses: actions/download-artifact@v7
9599
with:
96100
name: cmake-build-ubuntu
97-
path: build
101+
path: .
102+
- name: Extract CMake build directory
103+
run: tar -xzf build.tar.gz
98104
- name: Create folder for test artifacts
99105
run: mkdir -p test_artifacts
100106
- name: Access PolyScope
@@ -262,16 +268,18 @@ jobs:
262268
ROBOT_MODEL: ${{matrix.env.ROBOT_MODEL}}
263269
URSIM_VERSION: ${{matrix.env.URSIM_VERSION}}
264270
PROGRAM_FOLDER: ${{matrix.env.PROGRAM_FOLDER}}
265-
- name: Download CMake build directory
271+
- name: Download CMake build archive
266272
uses: actions/download-artifact@v7
267273
with:
268274
name: cmake-build-ubuntu
269-
path: build
275+
path: .
270276
env:
271277
DOCKER_RUN_OPTS: --network ursim_net
272278
ROBOT_MODEL: ${{matrix.env.ROBOT_MODEL}}
273279
URSIM_VERSION: ${{matrix.env.URSIM_VERSION}}
274280
PROGRAM_FOLDER: ${{matrix.env.PROGRAM_FOLDER}}
281+
- name: Extract CMake build directory
282+
run: tar -xzf build.tar.gz
275283
- name: inspect build folder
276284
run: ls -la build && ls -la build/tests
277285
- name: test robot type

0 commit comments

Comments
 (0)