Add devenv cache substitutor #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Template test: darwin-system" | |
on: | |
push: | |
paths: | |
- .github/workflows/template-darwin-system.yaml | |
- templates/darwin-system/* | |
- config/* | |
jobs: | |
template-test: | |
runs-on: macos-latest | |
steps: | |
- uses: "actions/checkout@v4" | |
- uses: "DeterminateSystems/nix-installer-action@main" | |
- uses: cachix/cachix-action@v14 | |
with: | |
name: luke-channings | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Build packages | |
run: | | |
export NIXPKGS_ALLOW_UNFREE=1 | |
nix flake new --accept-flake-config -t .#darwin-system darwin-system | |
sudo nix run --accept-flake-config path:"$(pwd)/darwin-system"#activate --show-trace |