-
Notifications
You must be signed in to change notification settings - Fork 17
67 lines (54 loc) · 1.76 KB
/
Copy pathci.yml
File metadata and controls
67 lines (54 loc) · 1.76 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: CI
# Thin PR Check for the linear-cli repo. Runs only on Blacksmith's Linux pool
# so the shared Blacksmith free tier is not burned by macOS/Windows builds.
# See .github/CI.md and docs/adr/0001-pr-check-blacksmith-local-release.md for
# why this is Linux-only and how the budget modes gate it.
on:
push:
branches: [master, main]
paths-ignore:
- "docs/**"
- "skills/**"
- "**/*.md"
- "LICENSE"
pull_request:
branches: [master, main]
paths-ignore:
- "docs/**"
- "skills/**"
- "**/*.md"
- "LICENSE"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
pr-check:
name: PR Check
runs-on: blacksmith-4vcpu-ubuntu-2404
# Budget mode gate:
# normal (unset/empty) -> run
# thin -> skip (Win-CodexBar priority)
# off -> skip
if: vars.CI_BUDGET_MODE != 'off' && vars.CI_BUDGET_MODE != 'thin'
steps:
- uses: actions/checkout@v4
- name: Install Linux keyring build deps
run: sudo apt-get update && sudo apt-get install -y libdbus-1-dev pkg-config
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache cargo
uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test --verbose --features secure-storage
- name: Check formatting
run: cargo fmt --check
- name: Run clippy
run: cargo clippy --features secure-storage -- -D warnings
# Keep a default-features build green so crates.io installs without
# secure-storage still compile.
- name: Build without secure-storage
run: cargo build --verbose