Skip to content

Commit

Permalink
ci(nix): re-enable
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston committed Nov 27, 2023
1 parent 974a0bb commit e8e3d17
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Nix Test & Cache

on:
push:
branches: [main]
paths: ["**.nix", "**.ts", "**.nix"]
pull_request:
paths: ["**.nix", "**.ts", "**.nix"]
workflow_dispatch:

jobs:
build:
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest"]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main

- name: Setup cachix
uses: cachix/cachix-action@v12
with:
name: "catppuccin"
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
skipPush: ${{ github.ref != 'refs/heads/main' }}

- name: Flake check
run: nix flake check -Lv

- name: Build packages
run: nix build -L .

0 comments on commit e8e3d17

Please sign in to comment.