Lints and suggestions for the Nix programming language
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'add/cachix-build-action'

Akshay 23892b03 9a1796bd

+36
+36
.github/workflows/build.yml
··· 1 + name: build 2 + on: 3 + pull_request: 4 + push: 5 + jobs: 6 + build: 7 + strategy: 8 + matrix: 9 + os: 10 + - ubuntu-latest 11 + nix: 12 + - name: 2.5.1 13 + url: https://releases.nixos.org/nix/nix-2.5.1/install 14 + runs-on: ${{ matrix.os }} 15 + steps: 16 + - uses: actions/checkout@v2.3.5 17 + - uses: cachix/install-nix-action@v15 18 + with: 19 + install_url: ${{ matrix.nix.url }} 20 + extra_nix_config: | 21 + experimental-features = nix-command flakes 22 + 23 + - name: enable binary cache 24 + uses: cachix/cachix-action@v10 25 + with: 26 + name: statix 27 + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' 28 + 29 + - run: nix flake check 30 + 31 + # this also includes `cargo test` 32 + - name: build statix 33 + run: nix build -L 34 + 35 + - name: build and install statix with flake-compat 36 + run: nix-env -if default.nix