diff options
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yml | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cf64f20..c141655 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml | |||
@@ -28,37 +28,9 @@ jobs: | |||
28 | 28 | ||
29 | - run: nix flake check | 29 | - run: nix flake check |
30 | 30 | ||
31 | # this also includes `cargo test` | ||
31 | - name: build statix | 32 | - name: build statix |
32 | run: nix build -L | 33 | run: nix build -L |
33 | 34 | ||
34 | - name: build and install statix with flake-compat | 35 | - name: build and install statix with flake-compat |
35 | run: nix-env -if default.nix | 36 | run: nix-env -if default.nix |
36 | |||
37 | tests: | ||
38 | strategy: | ||
39 | matrix: | ||
40 | os: | ||
41 | - ubuntu-latest | ||
42 | nix: | ||
43 | - name: 2.5.1 | ||
44 | url: https://releases.nixos.org/nix/nix-2.5.1/install | ||
45 | runs-on: ${{ matrix.os }} | ||
46 | steps: | ||
47 | - uses: actions/[email protected] | ||
48 | |||
49 | - uses: cachix/install-nix-action@v15 | ||
50 | with: | ||
51 | install_url: ${{ matrix.nix.url }} | ||
52 | extra_nix_config: | | ||
53 | experimental-features = nix-command flakes | ||
54 | |||
55 | - uses: cachix/cachix-action@v10 | ||
56 | with: | ||
57 | name: statix | ||
58 | authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
59 | |||
60 | - name: set up pinned nixpkgs | ||
61 | run: echo "NIX_PATH=nixpkgs=$(nix-instantiate --eval flake-compat.nix -A defaultNix.inputs.nixpkgs.outPath | sed 's|\"||g')" >> $GITHUB_ENV | ||
62 | |||
63 | - run: nix-shell --run "cargo test" | ||
64 | |||