-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (29 loc) · 930 Bytes
/
Copy pathci.yml
File metadata and controls
37 lines (29 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: CI
# Minimal compile gate for PRs and main. Until this existed, the release
# workflow was the repo's only build check, so uncompilable merges could land
# on main unnoticed — v1.6.8 alone shipped three separate "repair main" fixes.
#
# Deliberately just `cargo check`: fast enough to gate every PR, and it
# compiles the lib, bins, tests, and benches without running anything.
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
name: cargo check
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo
uses: Swatinem/rust-cache@v2
- name: Check (lib, bins, tests, benches)
run: cargo check --locked --all-targets