Skip to content

chore(ci): speed up CI with magic-nix-cache and golang reduction (#179) #368

chore(ci): speed up CI with magic-nix-cache and golang reduction (#179)

chore(ci): speed up CI with magic-nix-cache and golang reduction (#179) #368

Workflow file for this run

name: Nix
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: nix-${{ github.ref }}
cancel-in-progress: true
env:
# https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
nix:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22
- uses: DeterminateSystems/magic-nix-cache-action@565684385bcd71bad329742eefe8d12f2e765b39 # v13
- name: Check formatting
run: |
nix fmt .
git diff --exit-code
- run: nix flake check
- run: nix build
- run: nix run . -- --help