Repository navigation
61 lines (49 loc) · 1.85 KB
/
Copy pathci.yml
File metadata and controls
61 lines (49 loc) · 1.85 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
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
# The fleet's measured build hygiene (ndarray / MedCare-rs CLAUDE.md):
# debug info off and no incremental cache keep the lance/arrow tree inside
# the runner's disk. Do NOT set RUSTFLAGS here: an env RUSTFLAGS silently
# replaces every cargo-config rustflags entry (ndarray CLAUDE.md, the
# target-cpu incident).
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: "0"
CARGO_PROFILE_DEV_DEBUG: "0"
CARGO_PROFILE_TEST_DEBUG: "0"
jobs:
check:
name: fmt, clippy, test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# rustup reads rust-toolchain.toml (1.99.0 + rustfmt + clippy).
- name: Install pinned toolchain
run: rustup show active-toolchain || rustup toolchain install
- name: Format
run: cargo fmt --all --check
# --no-deps: lint our crates, not the git siblings (MedCare-rs lesson).
- name: Clippy
run: cargo clippy --workspace --all-targets --no-deps -- -D warnings
# Includes hubspo-guards: forbidden dependencies, zone discipline,
# identity shapes (Gate G0).
- name: Test
run: cargo test --workspace
# hubspo-store's Lance log (feature `lance`) needs `protoc` to build
# lance-encoding, so it runs in its own job and the default job stays fast.
store-lance:
name: hubspo-store (lance)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pinned toolchain
run: rustup show active-toolchain || rustup toolchain install
- name: Install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Clippy
run: cargo clippy -p hubspo-store --features lance --all-targets --no-deps -- -D warnings
- name: Test
run: cargo test -p hubspo-store --features lance