Skip to content

Commit faf5d76

Browse files
authored
RSDK-5238 - fix cmake for bullseye (#205)
1 parent bb4e1bd commit faf5d76

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ jobs:
9191
run: |
9292
cmake --install build --prefix builds/viam-cpp-sdk-${{ matrix.platform }}
9393
94+
- name: Create tar
95+
run: |
96+
tar -czvf builds/viam-cpp-sdk-${{ matrix.platform }}.tar.gz builds/viam-cpp-sdk-${{ matrix.platform }}
97+
9498
- name: Upload artifacts
9599
uses: actions/upload-artifact@v3
96100
with:
@@ -170,6 +174,10 @@ jobs:
170174
run: |
171175
/usr/bin/cmake --install build --prefix builds/viam-cpp-sdk-${{ matrix.platform }}
172176
177+
- name: Create tar
178+
run: |
179+
tar -czvf builds/viam-cpp-sdk-${{ matrix.platform }}.tar.gz builds/viam-cpp-sdk-${{ matrix.platform }}
180+
173181
- name: Upload artifacts
174182
uses: actions/upload-artifact@v3
175183
with:
@@ -241,12 +249,16 @@ jobs:
241249
wget \
242250
zlib1g-dev
243251
252+
- name: Update CMake for bullseye
253+
if: ${{ matrix.image == 'debian:bullseye' }}
254+
run: |
244255
apt-add-repository -y 'deb http://deb.debian.org/debian bullseye-backports main'
245256
246257
apt-get update
247258
apt-get -y install cmake
248259
249260
apt-get -y --no-install-recommends install -t bullseye-backports cmake
261+
250262
- name: Setup build directory
251263
run: mkdir builds
252264

@@ -261,6 +273,10 @@ jobs:
261273
run: |
262274
/usr/bin/cmake --install build --prefix builds/viam-cpp-sdk-${{ matrix.platform }}
263275
276+
- name: Create tar
277+
run: |
278+
tar -czvf builds/viam-cpp-sdk-${{ matrix.platform }}.tar.gz builds/viam-cpp-sdk-${{ matrix.platform }}
279+
264280
- name: Upload artifacts
265281
uses: actions/upload-artifact@v3
266282
with:
@@ -279,7 +295,7 @@ jobs:
279295
uses: softprops/action-gh-release@v1
280296
with:
281297
tag_name: releases/v${{ needs.prepare.outputs.version }}
282-
files: builds/*
298+
files: builds/*.tar.gz
283299
draft: true
284300
prerelease: false
285301
fail_on_unmatched_files: true

0 commit comments

Comments
 (0)