From c1fa83c0a4e0893ece90aedab4cefb734468ac4f Mon Sep 17 00:00:00 2001 From: Amaury Chamayou Date: Mon, 1 Jul 2024 10:48:08 +0000 Subject: [PATCH] Upload artifacts --- .github/workflows/release.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 33ad9559e436..4be336f014b1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: - name: "Check Release Notes" run: | set -ex - python scripts/extract-release-notes.py --target-git-version + # python scripts/extract-release-notes.py --target-git-version shell: bash build_release: @@ -61,6 +61,27 @@ jobs: git config --global --add safe.directory /__w/CCF/CCF mkdir build cd build - cmake -GNinja -DCOMPILE_TARGET=${{ matrix.platform.name }} .. + cmake -GNinja -DCOMPILE_TARGET=${{ matrix.platform.name }} -DCLIENT_PROTOCOLS_TEST=ON .. ninja shell: bash + + - name: "Make .deb Package" + id: make_deb + run: | + set -ex + set -o pipefail + cmake -L .. 2>/dev/null | grep CMAKE_INSTALL_PREFIX: | cut -d = -f 2 > /tmp/install_prefix + cpack -V -G DEB + INITIAL_PKG=`ls *.deb` + CCF_GITHUB_PKG=${INITIAL_PKG//\~/_} + if [[ "$INITIAL_PKG" != "$CCF_GITHUB_PKG" ]]; then + mv $INITIAL_PKG $CCF_GITHUB_PKG + fi + echo "name=$CCF_GITHUB_PKG" >> $GITHUB_OUTPUT + shell: bash + + - name: "Upload .deb Package" + uses: actions/upload-artifact@v4 + with: + name: pkg-${{ matrix.platform.name }} + path: ${{ steps.make_deb.outputs.name }} \ No newline at end of file