jj/.github/workflows/build-nix.yml
Austin Seipp 139d126b67
Some checks are pending
binaries / Build binary artifacts (push) Waiting to run
website / prerelease-docs-build-deploy (ubuntu-24.04) (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
github: remove Magic Nix Cache
Apparently, Magic Nix Cache will stop working on Feb 1st, because
the underlying APIs are being sunset by GitHub, and there are no open
replacements for it quite yet. Since it's just an optimization, we'll
have to live with it.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2025-01-26 13:09:41 +00:00

37 lines
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
- run: nix flake check -L --show-trace