ci: update nix version #575
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
prepare: | |
name: Prepare | |
runs-on: ubuntu-latest | |
outputs: | |
checks: ${{ steps.checks.outputs.checks }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@da36cb69b1c3247ad7a1f931ebfd954a1105ef14 # v14 | |
with: | |
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux | |
extra-conf: | | |
max-jobs = auto | |
- name: Find checks | |
id: checks | |
run: | | |
nix eval --json --apply builtins.attrNames .#checks.x86_64-linux | sed 's|^|checks=|' >>$GITHUB_OUTPUT | |
echo $GITHUB_OUTPUT | |
check: | |
name: Check | |
needs: | |
- prepare | |
strategy: | |
fail-fast: false | |
matrix: | |
check: ${{ fromJSON(needs.prepare.outputs.checks) }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@da36cb69b1c3247ad7a1f931ebfd954a1105ef14 # v14 | |
with: | |
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux | |
extra-conf: | | |
max-jobs = auto | |
- name: Nix cache (cachix) | |
uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15 | |
with: | |
useDaemon: true | |
name: terlar | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
extraPullNames: nix-community | |
- name: Run check | |
run: nix build .#checks.x86_64-linux.${{ matrix.check }} | |
build: | |
name: Build | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@da36cb69b1c3247ad7a1f931ebfd954a1105ef14 # v14 | |
with: | |
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux | |
extra-conf: | | |
max-jobs = auto | |
- name: Nix cache (cachix) | |
uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15 | |
with: | |
useDaemon: true | |
name: terlar | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
extraPullNames: nix-community | |
- name: Build default package | |
run: nix build --print-build-logs |