From bfcfbd661d5de7ba4aa2ad4070622c381aedbb34 Mon Sep 17 00:00:00 2001 From: Ken Sedgwick Date: Tue, 26 Nov 2024 12:58:27 -0800 Subject: [PATCH] Add debian packaging --- .github/workflows/rust.yml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index cfbd9d1..e8ce744 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -104,30 +104,34 @@ jobs: # - name: Build # run: ./trunk build - rpm: - name: Build RPM + packages: + name: Generate Packages runs-on: ubuntu-latest steps: - - name: Checkout code + - name: Checkout Code uses: actions/checkout@v2 - - name: Install RPM Build Tools + - name: Install Packaging Tools run: | sudo apt-get update sudo apt-get install -y rpm binutils - cargo install cargo-generate-rpm + cargo install cargo-generate-rpm cargo-deb - - name: Build Rust Project + - name: Build Project run: cargo build --release - name: Strip Debug Symbols - run: strip target/release/notedeck + run: strip target/release/notedeck || echo "Skipping strip if not applicable" - - name: Build RPM - run: cargo generate-rpm + - name: Build Packages + run: | + cargo generate-rpm + cargo deb - - name: Upload RPM Artifact + - name: Upload Packages uses: actions/upload-artifact@v3 with: - name: notedeck-rpm - path: target/generate-rpm/*.rpm + name: notedeck-packages + path: | + target/generate-rpm/*.rpm + target/debian/*.deb