From 8cb5eed039ef311522c9dfd3cf60f35f81fe0109 Mon Sep 17 00:00:00 2001 From: "Andrew D. Zonenberg" Date: Wed, 30 Oct 2024 06:49:38 -0700 Subject: [PATCH] First attempt at building deb packages in CI --- .github/workflows/build-ubuntu.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/build-ubuntu.yml b/.github/workflows/build-ubuntu.yml index c29d1fa5..511057d4 100644 --- a/.github/workflows/build-ubuntu.yml +++ b/.github/workflows/build-ubuntu.yml @@ -149,6 +149,8 @@ jobs: -DCMAKE_BUILD_TYPE=Release \ -DDISABLE_PCH=ON \ -GNinja \ + -DCPACK_GENERATOR=DEB \ + -DCMAKE_INSTALL_PREFIX=/usr \ .. - name: Build @@ -157,6 +159,12 @@ jobs: cd build ninja + name: Build Package + if: ${{ ! matrix.docs }} + run: | + cd build + ninja package + - name: Build Docs if: ${{ matrix.docs }} run: | @@ -184,6 +192,13 @@ jobs: build/lib/scopeprotocols/libscopeprotocols.so build/Testing/Temporary/LastTest.log + - name: Upload Package + if: ${{ ! matrix.docs }} + uses: actions/upload-artifact@v4 + with: + name: ngscopeclient-${{ matrix.os }}-${{ github.job }}-${{ matrix.sdk_type }}-package + path: build/*.deb + - name: Upload Documentation if: ${{ matrix.docs }} uses: actions/upload-artifact@v4