mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-03 18:24:19 +00:00
31041ef46c
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.
24 lines
546 B
YAML
24 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
|