-
Notifications
You must be signed in to change notification settings - Fork 19
54 lines (41 loc) · 1.5 KB
/
Copy pathci.yml
File metadata and controls
54 lines (41 loc) · 1.5 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
name: CI
# Legacy fallback for the linear-cli repo. CircleCI is canonical; this workflow
# is intentionally manual-dispatch only during the migration.
on:
# CircleCI is canonical; keep this as an explicitly dispatched fallback
# while branch-protection checks are migrated.
workflow_dispatch:
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