Remove pre-aggregated `rust` package from CI

main
oxalica 3 years ago
parent 420c01748a
commit 49895bee19
No known key found for this signature in database
GPG Key ID: CED392DE0C483D00
  1. 4
      .github/workflows/ci.yaml

@ -92,7 +92,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest]
channel: [stable, beta]
build_pkg: [rust, default]
build_pkg: [minimal, default]
runs-on: ${{ matrix.os }}
env:
build_expr: (import <nixpkgs> { overlays = [ (import ./.) ]; }).rust-bin.${{ matrix.channel }}.latest.${{ matrix.build_pkg }}
@ -136,7 +136,7 @@ jobs:
nix-shell -p "$build_expr" --pure --command "rustc test.rs -o test"
[[ "$(./test)" == "hello, world" ]]
- name: Check `clippy` works
if: steps.cache-drv-status.outputs.cache-hit != 'true'
if: matrix.build_pkg == 'default' && steps.cache-drv-status.outputs.cache-hit != 'true'
run: |
echo 'fn main() { loop { break; } }' >./test.rs
nix-shell -p "$build_expr" --pure --command 'clippy-driver test.rs -W clippy::never-loop' 2>&1 | tee msg

Loading…
Cancel
Save