File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
.github/actions/nix/setup_nix Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,14 @@ runs:
3838 shell : bash
3939 run : |
4040 set -euxo pipefail
41+ NIX_BINARY_VERSION=2.32.0
42+ echo "NIX_BINARY_VERSION=$NIX_BINARY_VERSION" >> $GITHUB_ENV
4143 cat nix/canton-sources.json
4244 git ls-files nix/ | grep -v '[.]md$' | LC_ALL=C sort | xargs sha256sum -b > /tmp/nix-cache-key
4345 uname -m >> /tmp/nix-cache-key # Add architecture to the cache key
4446 echo "gh_cache_version: ${{ inputs.cache_version }}" >> /tmp/nix-cache-key # Add cache version to the cache key
4547 echo "home: $HOME" >> /tmp/nix-cache-key # important when restoring simlinks from cache, apparently
48+ echo "nix binary version: $NIX_BINARY_VERSION" >> /tmp/nix-cache-key # important when restoring simlinks from cache, apparently
4649 if [ "${{ inputs.oss_only }}" == true ]; then
4750 echo "Using OSS only dependencies"
4851 echo "oss_only: ${{ inputs.oss_only }}" >> /tmp/nix-cache-key
@@ -130,7 +133,7 @@ runs:
130133 fi
131134 mkdir -p /nix/store
132135 env
133- sh <(curl -fsSL --retry 8 https://releases.nixos.org/nix/nix-2.14.1 /install) --no-daemon
136+ sh <(curl -fsSL --retry 8 " https://releases.nixos.org/nix/nix-$NIX_BINARY_VERSION /install" ) --no-daemon
134137 sudo mkdir -p /etc/nix
135138 sudo chmod a+rw /etc/nix
136139 if [[ "${{ inputs.oss_only }}" == true ]]; then
You can’t perform that action at this time.
0 commit comments