aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-01-15 05:11:00 +0000
committerAkshay <[email protected]>2022-01-15 05:11:00 +0000
commit33e2442049442f52fc07b34c3c6bd0ec8fb636d8 (patch)
tree38b430e2c12fcf87ac49d7cb3df54bfc7af5001f /.github/workflows/build.yml
parent47eae1978796a2138f799296f61149f1825dc24c (diff)
remove test matrixadd/cachix-build-action
`nix build` already performs `cargo test`
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml30
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