build(deps): bump the cargo group across 1 directory with 2 updates #12
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| checks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Cache Rust artifacts | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Check formatting | |
| run: cargo fmt --check | |
| - name: Lint | |
| run: cargo clippy --all-targets --all-features -- -D warnings | |
| - name: Test | |
| run: cargo test | |
| aur-metadata: | |
| runs-on: ubuntu-latest | |
| container: archlinux:base-devel | |
| steps: | |
| - name: Install packaging tools | |
| run: pacman -Sy --noconfirm --needed gettext git | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Create build user | |
| run: | | |
| useradd --create-home --shell /bin/bash builder | |
| chown -R builder:builder "$GITHUB_WORKSPACE" | |
| - name: Render AUR package metadata | |
| run: | | |
| su builder -c "cd '$GITHUB_WORKSPACE' && \ | |
| scripts/render-aur-package.sh ghfetch-rs-git /tmp/ghfetch-rs-git --pkgver 0.1.0.r1.gabcdef0 && \ | |
| scripts/render-aur-package.sh ghfetch-rs-bin /tmp/ghfetch-rs-bin --pkgver 0.1.0 --sha256 0000000000000000000000000000000000000000000000000000000000000000" |