jj/.github/workflows/build-nix.yml

33 lines
849 B
YAML
Raw Normal View History

name: nix
2022-02-20 20:48:51 +00:00
on:
push:
branches:
- main
2022-02-20 20:48:51 +00:00
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions: {}
2022-02-20 20:48:51 +00:00
jobs:
nix:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-14]
runs-on: ${{ matrix.os }}
timeout-minutes: 15 # NOTE (aseipp): keep in-sync with the build.yml timeout limit
name: flake check
2022-02-20 20:48:51 +00:00
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2022-02-20 20:48:51 +00:00
with:
fetch-depth: 0
persist-credentials: false
- uses: DeterminateSystems/nix-installer-action@e50d5f73bfe71c2dd0aa4218de8f4afa59f8f81d
- uses: DeterminateSystems/magic-nix-cache-action@87b14cf437d03d37989d87f0fa5ce4f5dc1a330b
- run: nix flake check -L --show-trace