Bump version 0.19 #66
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Packages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| name: Build Packages (.deb & .rpm) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: x86_64-unknown-linux-gnu | |
| - name: Rust Cache | |
| uses: swatinem/rust-cache@v2 | |
| with: | |
| # The cache is automatically keyed by Cargo.lock and rustc version. | |
| # It includes restore-keys by default, so version bumps in Cargo.lock | |
| # will still benefit from the previous version's cache. | |
| save-if: ${{ github.ref == 'refs/heads/main' }} | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libssl-dev rpm | |
| - name: Setup Just | |
| uses: extractions/setup-just@v3 | |
| with: | |
| just-version: 1.42.4 | |
| - name: Build packages | |
| # Consolidating these into one job avoids compiling the project twice. | |
| # Running both recipes in a single 'just' command ensures the 'build' | |
| # dependency is satisfied once and reused for both packages. | |
| run: just build-deb build-rpm | |
| - name: Upload .deb package | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dispenser-deb | |
| path: dispenser-*.deb | |
| - name: Upload .rpm package | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dispenser-rpm | |
| path: rpmout/RPMS/x86_64/*.rpm |