From 072b6dfb75d7156ea2e0b22c8c04cb41cea3b757 Mon Sep 17 00:00:00 2001 From: Benjamin Demetz <50681275+Benji377@users.noreply.github.com> Date: Sat, 5 Oct 2024 18:58:28 +0200 Subject: [PATCH] Test packager Signed-off-by: Benjamin Demetz <50681275+Benji377@users.noreply.github.com> --- .github/workflows/release.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c9f0118..b42c760c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -111,15 +111,18 @@ jobs: - name: Set environment variables run: echo "PKG_CONFIG_SYSROOT_DIR=${{ matrix.sysroot }}" >> $GITHUB_ENV - - name: Install deb packager - run: cargo install cargo-deb + - name: Install app dependencies + run: cargo install cargo-packager --locked - - name: Package the cross-compiled build + - name: Package Binary env: PKG_CONFIG_SYSROOT_DIR: ${{ matrix.sysroot }} run: | - cargo deb --target=${{ matrix.target }} + cargo packager --release --verbose --config "{\"beforePackagingCommand\": \"cargo build --release --target ${{ matrix.target }}\", \"targetTriple\": \"${{ matrix.target }}\"}" + - name: List release + run: ls * target/${{ matrix.target }} + - name: Upload cross-compile artifacts uses: actions/upload-artifact@v4 with: