Skip to content

ci: fix cache workflow #28

ci: fix cache workflow

ci: fix cache workflow #28

Workflow file for this run

name: "Test"
on:
pull_request:
push:
branches:
- "main"
concurrency:
group: ${{ github.ref }}-test
cancel-in-progress: true
jobs:
checks:
name: Flake Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v9
with:
diagnostic-endpoint: ""
- name: Enable Nix Store Caching
uses: DeterminateSystems/magic-nix-cache-action@v3
with:
diagnostic-endpoint: ""
- run: nix -L flake check --all-systems
- run: nix -L flake check ./dev --all-systems
packages:
name: Build Packages
strategy:
matrix:
os: [macos-14, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v9
with:
diagnostic-endpoint: ""
- uses: DeterminateSystems/magic-nix-cache-action@v3
with:
diagnostic-endpoint: ""
- uses: cachix/cachix-action@v14
if: github.ref == 'refs/heads/main'
with:
name: nix-beam-flakes
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
pathsToPush: "./result"
skipAddingSubstituter: true
- run: nix -L build .#all