Skip to content

Commit

Permalink
Add workflow for testing nix integration
Browse files Browse the repository at this point in the history
  • Loading branch information
chaserhkj committed Jul 20, 2024
1 parent ce3e4d5 commit 3e8fd92
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "Test Nix Integration"
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
nix:
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
- macos-latest
name: Nix on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@V27
with:
extra_nix_config: |
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.ngi0.nixos.org-1:KqH5CBLNSyX184S9BKZJo1LxrxJ9ltnY2uAs5c/f1MA= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
substituters = https://cache.nixos.org https://cache.ngi0.nixos.org/ https://cache.iog.io/
nix_path: nixpkgs=channel:nixos-unstable

- name: "Test Nix flakes build"
run: nix build

- name: "Test Nix flakes development shell"
run: nix develop --check

- name: "Test Nix flake-compact build"
run: nix-build

- name: "Test Nix flake-compact development shell"
run: nix-shell --run echo

- continue-on-error: false
run: nix flake check

0 comments on commit 3e8fd92

Please sign in to comment.