use nix installer in both workflows

This commit is contained in:
Daylin Morgan 2024-02-19 14:16:00 -06:00
parent 172d5df94e
commit 544216f83f
Signed by: daylin
GPG Key ID: C1E52E7DD81DF79F
1 changed files with 4 additions and 10 deletions

View File

@ -20,21 +20,15 @@ jobs:
- run: sudo rm -rf /opt&
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25 # v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@v2
- uses: cachix/cachix-action@v14
with:
name: daylin
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
# - name: Build all flake outputs
# run: |
# cachix watch-exec daylin -- \
# nix build github:srid/devour-flake \
# -L --no-link --print-out-paths \
# --override-input flake .
- name: Build
run: |
nix run . --accept-flake-config -- cache --host "${{ matrix.host }}" --flake .