-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (36 loc) · 914 Bytes
/
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
36
37
38
39
name: check
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
name: "nix flake check"
strategy:
matrix:
platform:
- host: macos-latest
- host: ubuntu-latest
runs-on: ${{ matrix.platform.host }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-nix
with:
cachixAuthToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Set Swap Space
if: ${{ runner.os == 'Linux' }}
uses: pierotofy/[email protected]
with:
swap-size-gb: 10
- name: Free Disk Space
if: ${{ runner.os == 'Linux' }}
uses: jlumbroso/[email protected]
with:
tool-cache: false
- run: nix flake check -L --show-trace
continue-on-error: ${{ runner.os == 'macOS' }}