Add release.yml

This commit is contained in:
nielsandriesse 2021-04-21 14:25:32 +10:00
parent 08b932606a
commit 2c6704a6ac
2 changed files with 31 additions and 1 deletions

View File

@ -1,4 +1,4 @@
name: Check build, run tests & check formatting
name: Check
on: [push, pull_request]

30
.github/workflows/deb-ubuntu-20.04.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: Build DEB (Ubuntu 20.04)
on: release
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build DEB
run: |
cargo install cargo-deb
cargo deb
- name: Upload DEB
uses: actions/upload-artifact@v2
with:
name: "ubuntu-20.04"
path: target/debian/*.deb