chore(deps): bump clap from 4.5.4 to 4.5.9 #161
Workflow file for this run
This file contains 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 and Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build-rust: | |
name: Build Rust binary | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ runner.os }}-cargo- | |
- name: Formatting | |
run: cargo fmt -- --check | |
- name: Clippy | |
run: cargo clippy --release | |
- name: Compile | |
run: cargo build --release | |
- name: Run tests | |
run: cargo test --release | |
build-arch-package: | |
name: Build ArchLinux Package | |
runs-on: ubuntu-latest | |
container: | |
image: archlinux:base-devel | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
path: repo | |
- name: Install dependencies | |
# Because we can't run makepkg as root, we also can't install | |
# packages using `makepkg`'s `-s` flag :( | |
run: pacman -Syu --noconfirm cargo git | |
- name: Create build directory | |
# http://allanmcrae.com/2015/01/replacing-makepkg-asroot/ | |
run: | | |
useradd -m -d /home/build builder | |
cp repo/PKGBUILD /home/build/PKGBUILD | |
- name: Build package | |
run: sudo -u builder -- makepkg | |
working-directory: /home/build | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: package | |
path: "/home/build/*.pkg.tar.zst" | |