Skip to content

ci: use cache for checking #12

ci: use cache for checking

ci: use cache for checking #12

Workflow file for this run

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:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
name: Build (${{ matrix.os }})
runs-on: ${{ matrix.os }}
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: Run build
run: |
nix build --print-build-logs
check:
name: Check flake
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: Run check
run: |
nix flake check --print-build-logs --show-trace