@@ -3,43 +3,19 @@ name: Continuous Integration Checks
3
3
on : [ push, pull_request ]
4
4
5
5
jobs :
6
- build :
6
+ check-flake :
7
+ name : Check Nix Flake
8
+ runs-on : ubuntu-latest
7
9
strategy :
8
- matrix :
9
- platform : [
10
- ubuntu-latest,
11
- macos-latest,
12
- ]
13
- toolchain :
14
- [ stable,
15
- beta,
16
- 1.75.0, # MSRV
17
- ]
18
- include :
19
- - toolchain : stable
20
- check-fmt : true
21
- - toolchain : 1.75.0
22
- msrv : true
23
- runs-on : ${{ matrix.platform }}
10
+ fail-fast : true
24
11
steps :
25
- - name : Checkout source code
26
- uses : actions/checkout@v3
27
- - name : Install Rust ${{ matrix.toolchain }} toolchain
28
- run : |
29
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ matrix.toolchain }}
30
- rustup override set ${{ matrix.toolchain }}
31
- - name : Check formatting
32
- if : matrix.check-fmt
33
- run : rustup component add rustfmt && cargo fmt --all -- --check
34
- - name : Pin packages to allow for MSRV
35
- if : matrix.msrv
36
- run : |
37
- cargo update -p home --precise "0.5.9" --verbose # home v0.5.11 requires rustc 1.81 or newer
38
- - name : Build on Rust ${{ matrix.toolchain }}
39
- run : cargo build --verbose --color always
40
- - name : Test on Rust ${{ matrix.toolchain }}
41
- run : cargo test
42
- - name : Cargo check release on Rust ${{ matrix.toolchain }}
43
- run : cargo check --release
44
- - name : Cargo check doc on Rust ${{ matrix.toolchain }}
45
- run : cargo doc --release
12
+ - name : Checkout
13
+ uses : actions/checkout@v4
14
+ - name : Check Nix flake inputs
15
+ uses : DeterminateSystems/flake-checker-action@v8
16
+ - name : Install Nix
17
+ uses : cachix/install-nix-action@v31
18
+ with :
19
+ nix_path : nixpkgs=channel:nixos-25.05
20
+ - name : Check flake
21
+ run : nix flake check
0 commit comments