From 988f3c064c63bfccc618870b6c7257942613838d Mon Sep 17 00:00:00 2001 From: Joonas Onatsu Date: Thu, 21 Nov 2024 02:29:09 +0200 Subject: [PATCH] Fix Signed-off-by: Joonas Onatsu --- .github/workflows/build.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9cee8dc..273dd2d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,17 +39,25 @@ jobs: large-packages: true docker-images: true swap-storage: true - - name: Apt install - run: sudo apt-get update; sudo apt-get install -y git jq + - name: Get nixpkgs revision + id: nixpkgs_rev + run: | + echo "NIXPKGS=github:NixOS/nixpkgs/$(jq -r '.nodes.nixpkgs.locked.rev' flake.lock)" >> $GITHUB_OUTPUT - name: Install nix + id: nix_install uses: cachix/install-nix-action@v30 with: - nix_path: nixpkgs="github:NixOS/nixpkgs/$(jq -r '.nodes.nixpkgs.locked.rev' flake.lock)" + nix_path: nixpkgs=${{ steps.nixpkgs_rev.outputs.NIXPKGS }} extra_nix_config: | accept-flake-config = true trusted-public-keys = prod-cache.vedenemo.dev~1:JcytRNMJJdYJVQCYwLNsrfVhct5dhCK2D3fa6O1WHOI= cache.ssrcdevops.tii.ae:oOrzj9iCppf+me5/3sN/BxEkp5SaFkHfKTPPZ97xXQk= trusted-substituters = https://prod-cache.vedenemo.dev https://cache.ssrcdevops.tii.ae substituters = https://prod-cache.vedenemo.dev https://cache.ssrcdevops.tii.ae + run: | + echo "Nix info" + nix-shell -p nix-info --run "nix-info -m" + echo "Check nixpkgs version" + nix-instantiate --eval -E '(import {}).lib.version' - name: Prepare build uses: cachix/cachix-action@v15 with: