mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-06 20:42:10 +00:00
Like `main`, we don't want to double build these branches since they will be handled by `merge_group` already. Signed-off-by: Austin Seipp <aseipp@pobox.com>
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
name: nix
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
# Disable builds on these branches, because they will become a pull
|
|
# request, and be handled by merge_group below.
|
|
- '!dependabot/**'
|
|
# `main` and `gh-readonly-queue` are handled by merge_group specifically.
|
|
- '!gh-readonly-queue/**'
|
|
- '!main'
|
|
pull_request:
|
|
merge_group:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
nix:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-24.04, macos-14]
|
|
runs-on: ${{ matrix.os }}
|
|
timeout-minutes: 15 # NOTE (aseipp): keep in-sync with the build.yml timeout limit
|
|
|
|
name: flake check
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: DeterminateSystems/nix-installer-action@e50d5f73bfe71c2dd0aa4218de8f4afa59f8f81d
|
|
- uses: DeterminateSystems/magic-nix-cache-action@87b14cf437d03d37989d87f0fa5ce4f5dc1a330b
|
|
- run: nix flake check -L --show-trace
|