From 544216f83f4ae38896c922b1fd7093a6b3493117 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 19 Feb 2024 14:16:00 -0600 Subject: [PATCH] use nix installer in both workflows --- .github/workflows/build.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 64d4f21..4860249 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 .