From 33aa5768a5607b10174f7b4685f96d134b6e018e Mon Sep 17 00:00:00 2001 From: Urs Ritzmann Date: Mon, 18 Oct 2021 16:28:36 +0200 Subject: [PATCH] ci: create and upload deb package --- .github/workflows/ci.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa91906..9d338e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,7 @@ jobs: run: | mkdir build cd build - cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O3 -DNDEBUG -W -Wextra -Wall -Wnon-virtual-dtor -Werror" -DBUILD_TESTS=ON -DENABLE_PERF_TESTS=ON -DENABLE_STRESS_TESTS=ON -DBUILD_CODE_GEN=ON .. + cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS="-O3 -DNDEBUG -W -Wextra -Wall -Wnon-virtual-dtor -Werror" -DBUILD_TESTS=ON -DENABLE_PERF_TESTS=ON -DENABLE_STRESS_TESTS=ON -DBUILD_CODE_GEN=ON .. - name: configure-with-embedded-libsystemd if: matrix.build == 'embedded-static-libsystemd' run: | @@ -66,3 +66,17 @@ jobs: cd build sudo cmake --build . --target install ctest + - name: pack + if: matrix.build == 'shared-libsystemd' && matrix.os == 'ubuntu-20.04' + run: | + cd build + cpack -G DEB + - name: 'Upload Artifact' + if: matrix.build == 'shared-libsystemd' && matrix.os == 'ubuntu-20.04' + uses: actions/upload-artifact@v2 + with: + name: "debian-packages-${{ matrix.os }}" + path: | + build/sdbus-c++*.deb + build/sdbus-c++*.ddeb + retention-days: 10