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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: CI
on:
push:
branches:
pull_request:
branches:
# xcell-rust validates its port against the R xCell package offline: the
# committed synthetic-parity test compares against reference values dumped from R
# xCell at port time, so CI needs no R installation. (The real-data parity
# example additionally needs R + a public expression matrix; it is run locally,
# not in CI.) The crate has one path dependency (gsva-rust) and a single cargo
# feature, `parallel` (on by default), so two configurations are exercised: the
# default (parallel, pulls rayon) and `--no-default-features` (serial, whose only
# dependency is gsva-rust's zero-dependency core). The two only reorder
# independent per-sample work, so they are numerically identical. Runs on Windows
# to match the development platform.
jobs:
check:
name: fmt + clippy + test
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
# gsva-rust is a sibling path dependency; check it out alongside.
repository: sinmojito/gsva-rust
path: gsva-rust
- uses: actions/checkout@v4
with:
path: xcell-rust
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Format
working-directory: xcell-rust
run: cargo fmt --all -- --check
- name: Clippy (default = parallel)
working-directory: xcell-rust
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Clippy (serial)
working-directory: xcell-rust
run: cargo clippy --no-default-features --all-targets -- -D warnings
- name: Test (default = parallel)
working-directory: xcell-rust
run: cargo test
- name: Test (serial)
working-directory: xcell-rust
run: cargo test --no-default-features
msrv:
name: MSRV 1.85 (both feature configs)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
repository: sinmojito/gsva-rust
path: gsva-rust
- uses: actions/checkout@v4
with:
path: xcell-rust
# MSRV is inherited from gsva-rust, which declares rust-version 1.85 (its
# default faer build needs edition2024, stabilized in 1.85). cargo enforces
# a dependency's rust-version on every build that compiles it, so xcell-rust
# cannot build below 1.85 even though its own code otherwise could.
- uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.85.0"
- name: Build on MSRV (default = parallel)
working-directory: xcell-rust
run: cargo build
- name: Build on MSRV (serial)
working-directory: xcell-rust
run: cargo build --no-default-features