Add Github Workflow for RPM Builds

This commit is contained in:
dav 2023-10-03 22:36:44 -07:00 committed by David Zhong
parent 26d97c6a11
commit fb5cff0d5a

19
.github/workflows/build-rpm.yml vendored Normal file
View file

@ -0,0 +1,19 @@
name: Build RPM
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Install
run: cargo install cargo-generate-rpm
- name: Build
run:
cargo build --release |
strip -s target/release/burrow
- name: Build RPM
run: cargo cargo-generate-rpm -p burrow