-
Notifications
You must be signed in to change notification settings - Fork 12
35 lines (32 loc) · 1.08 KB
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Check
on: [ push, pull_request, workflow_dispatch ]
jobs:
checks:
name: Check expressions on ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
arch: [ x86_64-linux, aarch64-darwin ]
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v5
- uses: cachix/install-nix-action@v23
with:
install_url: https://nixos.org/nix/install
extra_nix_config: |
auto-optimise-store = true
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
experimental-features = nix-command flakes
system = ${{ matrix.arch }}
- uses: cachix/cachix-action@v12
with:
name: khanelinix
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: clear hostedtoolcache
run: rm -rf /opt/hostedtoolcache
- name: run flake check
run: nix flake check --system ${{ matrix.arch }}