Skip to content

Commit

Permalink
Add deb building to build CI
Browse files Browse the repository at this point in the history
  • Loading branch information
julianandrews committed Sep 22, 2022
1 parent a2fdd82 commit 9127682
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,30 @@ jobs:
with:
name: ${{ steps.build_archive.outputs.name }}
path: archive/${{ steps.build_archive.outputs.name }}
make_deb:
name: Make .deb
runs-on: ubuntu-latest
steps:

- name: Checkout repository
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
override: true

- name: Build .deb
id: deb
run: |
cargo install cargo-deb
deb_file=$(cargo deb)
echo "::set-output name=name::$(basename $deb_file)"
- name: Upload .deb
uses: actions/upload-artifact@v3
with:
name: ${{ steps.deb.outputs.name }}
path: target/debian/${{ steps.deb.outputs.name }}

0 comments on commit 9127682

Please sign in to comment.