chore: update sources #66
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: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build .#${{ matrix.package }} (${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
package: | |
- default | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v11 | |
- name: Setup cache | |
uses: DeterminateSystems/magic-nix-cache-action@v6 | |
- name: Setup cachix | |
uses: cachix/cachix-action@v14 | |
with: | |
name: vdbe | |
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}" | |
authToken: "${{ secrets.CACHIX_TOKEN }}" | |
- name: Run build | |
run: | | |
nix build --print-build-logs .#${{ matrix.package }} | |
check: | |
name: Check flake | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v11 | |
- name: Setup cache | |
uses: DeterminateSystems/magic-nix-cache-action@v6 | |
- name: Setup cachix | |
uses: cachix/cachix-action@v14 | |
with: | |
name: vdbe | |
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}" | |
authToken: "${{ secrets.CACHIX_TOKEN }}" | |
- name: Run check | |
run: | | |
nix flake check --print-build-logs --show-trace | |
nix build \ | |
--print-build-logs \ | |
--show-trace \ | |
"./dev#checks.x86_64-linux.treefmt" |