Add Github Workflow for RPM Builds
This commit is contained in:
parent
26d97c6a11
commit
fb5cff0d5a
1 changed files with 19 additions and 0 deletions
19
.github/workflows/build-rpm.yml
vendored
Normal file
19
.github/workflows/build-rpm.yml
vendored
Normal 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
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue