Skip to content

ci(nix): add cachix (#87) #2

ci(nix): add cachix (#87)

ci(nix): add cachix (#87) #2

Workflow file for this run

name: Build and populate cache
on:
push:
branches: [main]
pull_request:
jobs:
build:
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v23
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup cachix
uses: cachix/cachix-action@v12
with:
name: "catppuccin"
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Flake check
run: nix flake check
- name: Build package
run: nix build -L .