Disable man-db auto-update in GHAs (#51) #121
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: | |
| branches: ["main"] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| rust-lint: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Update Rust toolchain | |
| run: rustup update | |
| - name: Rust Cache | |
| uses: Swatinem/[email protected] | |
| - name: Clippy | |
| run: cargo clippy --all-targets --locked -- --deny warnings | |
| - name: rustfmt | |
| run: cargo fmt -- --check | |
| rust-unit-test: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Update Rust toolchain | |
| run: rustup update | |
| - name: Rust Cache | |
| uses: Swatinem/[email protected] | |
| - name: Run unit tests | |
| run: cargo test --locked | |
| rust-integration-test: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| # The dpkg man-db trigger is excessively slow on GHA runners, see e.g.: | |
| # https://github.com/actions/runner-images/issues/10977 | |
| # https://github.com/actions/runner/issues/4030 | |
| # We disable it here so it does not fire at the end of the following apt-get install | |
| - name: Disable man-db auto-update | |
| run: sudo rm -f /var/lib/man-db/auto-update | |
| - name: Install musl-tools | |
| run: sudo apt-get install musl-tools -y --no-install-recommends | |
| - name: Update Rust toolchain | |
| run: rustup update | |
| - name: Install Rust linux-musl target | |
| run: rustup target add x86_64-unknown-linux-musl | |
| - name: Rust Cache | |
| uses: Swatinem/[email protected] | |
| - name: Install Pack CLI | |
| uses: buildpacks/github-actions/[email protected] | |
| - name: Run integration tests | |
| run: cargo test --locked -- --ignored --test-threads 16 |