2022-02-20 20:48:51 +00:00
|
|
|
name: Nix on Linux
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-05-06 16:03:56 +00:00
|
|
|
- main
|
2022-02-20 20:48:51 +00:00
|
|
|
pull_request:
|
|
|
|
|
2022-03-16 19:18:01 +00:00
|
|
|
permissions: read-all
|
|
|
|
|
2022-02-20 20:48:51 +00:00
|
|
|
jobs:
|
|
|
|
nix:
|
2023-07-12 03:14:07 +00:00
|
|
|
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:
|
2023-06-09 15:58:53 +00:00
|
|
|
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
|
2022-02-20 20:48:51 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2023-06-19 16:00:16 +00:00
|
|
|
- uses: cachix/install-nix-action@6ed004b9ccb68dbc28e7c85bee15fa93dbd214ac
|
2022-02-20 20:48:51 +00:00
|
|
|
with:
|
|
|
|
extra_nix_config: |
|
|
|
|
experimental-features = nix-command flakes
|
2023-07-12 03:14:07 +00:00
|
|
|
- run: nix ${{ matrix.mode }} --print-build-logs --show-trace
|