From fab6f9b329fcf9a959b662af6a66f7bd3bee78c2 Mon Sep 17 00:00:00 2001 From: bruwbird Date: Fri, 6 Sep 2024 11:36:10 +0900 Subject: [PATCH] ci: update Nix installation and caching This commit updates the CI workflow to use the latest versions of the 'install-nix-action' and 'cachix-action' from the 'cachix' organization. It also specifies the 'nixos-unstable' channel for Nix packages. Replaces 'determinateSystems' actions with 'cachix' actions. Configures 'cachix' to use the 'peerswap' cache. --- .github/workflows/ci.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b85965f7..1d6d138d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,12 @@ jobs: with: fetch-depth: 0 - name: Install Nix and run tests - uses: determinateSystems/nix-installer-action@v12 - - uses: DeterminateSystems/magic-nix-cache-action@v7 - - uses: DeterminateSystems/flake-checker-action@v8 - - run: nix-shell --run "make test-${{matrix.test-vector}}" \ No newline at end of file + uses: cachix/install-nix-action@v25 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v14 + with: + name: peerswap + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - run: nix develop --profile dev-profiile + - run: "make test-${{matrix.test-vector}}" \ No newline at end of file