File tree Expand file tree Collapse file tree 2 files changed +19
-14
lines changed Expand file tree Collapse file tree 2 files changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -44,20 +44,25 @@ jobs:
44
44
- name : Run cargo fmt
45
45
run : nix develop .#${{ matrix.rust-toolchain }} --command cargo fmt
46
46
47
- # cargo-clippy:
48
- # runs-on: ubuntu-latest
49
- # strategy:
50
- # matrix:
51
- # rust-toolchain: ["stable"]
52
- # name: Clippy (${{ matrix.rust-toolchain }})
53
- # steps:
54
- # - name: Checkout repository
55
- # uses: actions/checkout@v3
56
- # - name: Install Nix
57
- # uses: cachix/install-nix-action@v17
47
+ cargo-clippy :
48
+ runs-on : ubuntu-latest
49
+ strategy :
50
+ matrix :
51
+ rust-toolchain : ["stable"]
52
+ name : Clippy (${{ matrix.rust-toolchain }})
53
+ steps :
54
+ - name : Checkout repository
55
+ uses : actions/checkout@v3
56
+ - name : Install Nix
57
+ uses : cachix/install-nix-action@v17
58
+
59
+ # This is a workaround for https://github.com/oxalica/rust-overlay/issues/54,
60
+ # avoiding link errors when running cargo commands with `nix develop`.
61
+ - name : Remove binaries installed in ~/.cargo/bin
62
+ run : rm --recursive --force --verbose ~/.cargo/bin
58
63
59
- # - name: Run cargo clippy
60
- # run: nix develop .#${{ matrix.rust-toolchain }} --command cargo clippy -- --deny warnings
64
+ - name : Run cargo clippy
65
+ run : nix develop .#${{ matrix.rust-toolchain }} --command cargo clippy -- --deny warnings
61
66
62
67
nixpkgs-fmt :
63
68
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 98
98
#
99
99
# $ nix develop .#minimum --command cargo test
100
100
#
101
- pkgs . lib . mapAttrs
101
+ lib . mapAttrs
102
102
( name : rustToolchain :
103
103
let
104
104
rustWithExtensions = rustToolchain . override {
You can’t perform that action at this time.
0 commit comments