Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Demetz <[email protected]>
  • Loading branch information
Benji377 authored Oct 5, 2024
1 parent 74ee675 commit 5da8650
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 --target ${{ matrix.target }} --config "{\"beforePackagingCommand\": \"cargo build --release --target ${{ matrix.target }}\"}"
- name: List release
run: ls * target/${{ matrix.target }}

- name: Upload cross-compile artifacts
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 5da8650

Please sign in to comment.