From fb5cff0d5a3a395e0f7aaacd3deb0cf2a760865b Mon Sep 17 00:00:00 2001 From: dav Date: Tue, 3 Oct 2023 22:36:44 -0700 Subject: [PATCH] Add Github Workflow for RPM Builds --- .github/workflows/build-rpm.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/build-rpm.yml diff --git a/.github/workflows/build-rpm.yml b/.github/workflows/build-rpm.yml new file mode 100644 index 0000000..08e3ae1 --- /dev/null +++ b/.github/workflows/build-rpm.yml @@ -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 +