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

28 lines
690 B
YAML
Raw Normal View History

2022-02-20 20:48:51 +00:00
name: Nix on Linux
on:
push:
branches:
- main
2022-02-20 20:48:51 +00:00
pull_request:
permissions: read-all
2022-02-20 20:48:51 +00:00
jobs:
nix:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
mode: [ "flake check", "build" ]
runs-on: ${{ matrix.os }}
2022-02-20 20:48:51 +00:00
name: nix-build
timeout-minutes: 20
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
2022-02-20 20:48:51 +00:00
with:
fetch-depth: 0
- uses: DeterminateSystems/nix-installer-action@07ebb8d2749aa2fac2baae7d1cfa011e4acfd8d1
- uses: DeterminateSystems/magic-nix-cache-action@a04e6275a6bea232cd04fc6f3cbf20d4cb02a3e1
- run: nix ${{ matrix.mode }} --print-build-logs --show-trace