ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/.github/workflows/nix-linux.yml
Martin von Zweigbergk 31041ef46c github: trigger all builds on main branch, and PR for any branch
The conditions for triggering Nix builds and other builds were
slightly different.

Nix builds triggered by PRs happened on PRs for any branch, not just
the `main` branch. That makes very little difference in practice
because PRs for other branches are very rare. Still, let's be
consistent. I decided to trigger the builds on PRs for any branch.

More importantly, Nix builds triggered by push were only done for
pushes to `master`, which is not what our main branch is called, so
those never happened.
2022-05-06 11:56:50 -07:00

25 lines
546 B
YAML

name: Nix on Linux
on:
push:
branches:
- main
pull_request:
permissions: read-all
jobs:
nix:
runs-on: ubuntu-latest
name: nix-build
timeout-minutes: 20
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
with:
fetch-depth: 0
- uses: cachix/install-nix-action@d64e0553100205688c0fb2fa16edb0fc8663c590
with:
extra_nix_config: |
experimental-features = nix-command flakes
- run: nix flake check --print-build-logs --show-trace