From 7f758238497dd92202552978510c85110acace8e Mon Sep 17 00:00:00 2001 From: "guillem.cordoba" Date: Tue, 6 Aug 2024 14:00:39 +0200 Subject: [PATCH] Fix workflow --- .github/workflows/build-and-cache.yaml | 27 +++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-and-cache.yaml b/.github/workflows/build-and-cache.yaml index a6d6e6a07..6dab643b3 100644 --- a/.github/workflows/build-and-cache.yaml +++ b/.github/workflows/build-and-cache.yaml @@ -16,19 +16,20 @@ jobs: - uses: actions/checkout@v3 - name: Install nix - uses: cachix/install-nix-action@v25 + uses: cachix/install-nix-action@v27 with: - nix_path: nixpkgs=channel:nixos-unstable + github_access_token: ${{ secrets.GITHUB_TOKEN }} + nix_path: nixpkgs=channel:nixos-24.05 - - uses: cachix/cachix-action@v14 + - uses: cachix/cachix-action@v15 with: name: holochain-ci - - uses: cachix/cachix-action@v14 + - uses: cachix/cachix-action@v15 with: name: holochain-open-dev - - uses: cachix/cachix-action@v14 + - uses: cachix/cachix-action@v15 with: name: darksoil-studio @@ -41,12 +42,12 @@ jobs: CACHIX_AUTH_TOKEN: "${{ secrets.DARKSOIL_CACHIX_AUTH_TOKEN }}" run: | cachix watch-exec darksoil-studio -- nix build --no-update-lock-file --accept-flake-config -L .#roles_integrity - cachix push darksoil-studio $(nix path-info --json --accept-flake-config --no-warn-dirty .#roles_integrity | nix run nixpkgs#jq -- -r '.[].path') - cachix pin darksoil-studio roles_integrity_debug $(nix path-info --json --accept-flake-config --no-warn-dirty .#roles_integrity | nix run nixpkgs#jq -- -r '.[].path') + cachix push darksoil-studio $(nix path-info --json --accept-flake-config --no-warn-dirty .#roles_integrity | nix run nixpkgs#jq -- -r 'keys[0]') + cachix pin darksoil-studio roles_integrity_debug $(nix path-info --json --accept-flake-config --no-warn-dirty .#roles_integrity | nix run nixpkgs#jq -- -r 'keys[0]') cachix watch-exec darksoil-studio -- nix build --no-update-lock-file --accept-flake-config -L .#roles - cachix push darksoil-studio $(nix path-info --json --accept-flake-config --no-warn-dirty .#roles | nix run nixpkgs#jq -- -r '.[].path') - cachix pin darksoil-studio roles_debug $(nix path-info --json --accept-flake-config --no-warn-dirty .#roles | nix run nixpkgs#jq -- -r '.[].path') + cachix push darksoil-studio $(nix path-info --json --accept-flake-config --no-warn-dirty .#roles | nix run nixpkgs#jq -- -r 'keys[0]') + cachix pin darksoil-studio roles_debug $(nix path-info --json --accept-flake-config --no-warn-dirty .#roles | nix run nixpkgs#jq -- -r 'keys[0]') - name: Build release zomes if: matrix.os == 'ubuntu-latest' @@ -54,9 +55,9 @@ jobs: CACHIX_AUTH_TOKEN: "${{ secrets.DARKSOIL_CACHIX_AUTH_TOKEN }}" run: | cachix watch-exec darksoil-studio -- nix build --no-update-lock-file --accept-flake-config -L .#roles_integrity.meta.release - cachix push darksoil-studio $(nix path-info --json --accept-flake-config --no-warn-dirty .#roles_integrity.meta.release | nix run nixpkgs#jq -- -r '.[].path') - cachix pin darksoil-studio roles_integrity $(nix path-info --json --accept-flake-config --no-warn-dirty .#roles_integrity.meta.release | nix run nixpkgs#jq -- -r '.[].path') + cachix push darksoil-studio $(nix path-info --json --accept-flake-config --no-warn-dirty .#roles_integrity.meta.release | nix run nixpkgs#jq -- -r 'keys[0]') + cachix pin darksoil-studio roles_integrity $(nix path-info --json --accept-flake-config --no-warn-dirty .#roles_integrity.meta.release | nix run nixpkgs#jq -- -r 'keys[0]') cachix watch-exec darksoil-studio -- nix build --no-update-lock-file --accept-flake-config -L .#roles.meta.release - cachix push darksoil-studio $(nix path-info --json --accept-flake-config --no-warn-dirty .#roles.meta.release | nix run nixpkgs#jq -- -r '.[].path') - cachix pin darksoil-studio roles $(nix path-info --json --accept-flake-config --no-warn-dirty .#roles.meta.release | nix run nixpkgs#jq -- -r '.[].path') + cachix push darksoil-studio $(nix path-info --json --accept-flake-config --no-warn-dirty .#roles.meta.release | nix run nixpkgs#jq -- -r 'keys[0]') + cachix pin darksoil-studio roles $(nix path-info --json --accept-flake-config --no-warn-dirty .#roles.meta.release | nix run nixpkgs#jq -- -r 'keys[0]')