Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Joonas Onatsu <[email protected]>
  • Loading branch information
JoonasOnatsu committed Nov 21, 2024
1 parent 9e61d64 commit 988f3c0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <nixpkgs> {}).lib.version'
- name: Prepare build
uses: cachix/cachix-action@v15
with:
Expand Down

0 comments on commit 988f3c0

Please sign in to comment.