File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 8
8
- main
9
9
jobs :
10
10
build :
11
+ strategy :
12
+ matrix :
13
+ min-version : [true, false]
11
14
runs-on : ubuntu-latest
12
15
steps :
13
16
- uses : actions/checkout@v3
14
17
- uses : cachix/install-nix-action@v22
15
18
with :
16
19
nix_path : nixpkgs=channel:nixos-unstable
20
+ - if : ${{ matrix.min-version }}
21
+ run : nix develop . -c cargo update -Z direct-minimal-versions
17
22
- run : nix flake check --keep-going --print-build-logs
Original file line number Diff line number Diff line change 65
65
} ;
66
66
67
67
devShells . default = pkgs : {
68
+ inputsFrom = with pkgs ; [ antithesis-sdk-rust . workspace ] ;
68
69
packages = with pkgs ; [ rust-analyzer cargo-msrv ] ;
69
70
} ;
70
71
71
- # TODO: Check minimal versions of dependency, and feature flags.
72
- # TODO: Do we what formatters?
72
+ # TODO: Check combinations of feature flags & semver check.
73
73
checks = { antithesis-sdk-rust , ... } : {
74
74
inherit ( antithesis-sdk-rust ) workspaceMSRV clippy test ;
75
75
} ;
76
76
77
+ formatters = pkgs : {
78
+ "*.rs" = "${ pkgs . rustfmt } /bin/rustfmt" ;
79
+ "*.nix" = "${ pkgs . nixpkgs-fmt } /bin/nixpkgs-fmt" ;
80
+ } ;
81
+
77
82
flakelight . builtinFormatters = false ;
78
83
} ;
79
84
}
You can’t perform that action at this time.
0 commit comments