Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,23 @@ permissions:
jobs:
quality:
runs-on: ubuntu-latest
# A step that hangs rather than fails gets the six-hour default, and the job
# is killed without uploading a log, so it reports nothing about what stalled.
# One apt-get did exactly that for 80 minutes. Every job below is bounded at
# roughly ten times its observed runtime: slow enough never to cut off real
# work, fast enough that a stall costs a re-run instead of an afternoon.
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.95.0
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- run: sudo apt-get update && sudo apt-get install -y jq
# gates.sh needs jq, which ubuntu-latest ships preinstalled. The apt-get
# that used to stand here only ever reported "already the newest version",
# so it bought a network dependency and a hang for nothing. If a future
# image drops jq, gates.sh says so outright instead of stalling.
- run: scripts/gates.sh

cross-platform:
Expand All @@ -28,6 +37,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
Expand All @@ -48,6 +58,7 @@ jobs:

dependency-audit:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: EmbarkStudios/cargo-deny-action@v2
Expand All @@ -57,6 +68,7 @@ jobs:

supply-chain:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
with:
Expand Down