jj/.github/workflows/nix-linux.yml
Austin Seipp 3e23155b10 fix(github): run 'nix build' as part of CI, too
Summary: While I was developing #1846, I found a case where `nix flake check`
succeeded but `nix build` on the jujutsu expression failed, which was confusing
to me. If it had been merged, it would have broke the ability to use Nix to
install things.

Let's try to attack this, and punch a parallel job into the build matrix;
hopefully running the two jobs concurrently can help catch this without
making build time much worse.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
Change-Id: If2520d69492fa6abe499c1cb1d51d6e1
2023-07-12 17:07:38 +01:00

29 lines
678 B
YAML

name: Nix on Linux
on:
push:
branches:
- main
pull_request:
permissions: read-all
jobs:
nix:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
mode: [ "flake check", "build" ]
runs-on: ${{ matrix.os }}
name: nix-build
timeout-minutes: 20
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
with:
fetch-depth: 0
- uses: cachix/install-nix-action@6ed004b9ccb68dbc28e7c85bee15fa93dbd214ac
with:
extra_nix_config: |
experimental-features = nix-command flakes
- run: nix ${{ matrix.mode }} --print-build-logs --show-trace