File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
.github/actions/nix-install-ephemeral Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -40,15 +40,15 @@ runs:
4040 id : check-runner
4141 shell : bash
4242 run : |
43- if [[ "${{ runner.name }}" == *"GitHub Actions"* ]] || [[ "$RUNNER_ENVIRONMENT" == "github-hosted " ]]; then
44- echo "is_self_hosted=false " >> $GITHUB_OUTPUT
45- echo "Running on GitHub-hosted runner, will install Nix"
43+ if [[ "${{ runner.name }}" == "arm-native-runner " ]]; then
44+ echo "skip_nix_install=true " >> $GITHUB_OUTPUT
45+ echo "Running on arm-native- runner, skipping Nix installation (pre-installed) "
4646 else
47- echo "is_self_hosted=true " >> $GITHUB_OUTPUT
48- echo "Running on self-hosted runner, skipping Nix installation (should be pre-installed) "
47+ echo "skip_nix_install=false " >> $GITHUB_OUTPUT
48+ echo "Will install Nix"
4949 fi
5050 - name : Install nix
51- if : steps.check-runner.outputs.is_self_hosted != 'true'
51+ if : steps.check-runner.outputs.skip_nix_install != 'true'
5252 uses : cachix/install-nix-action@v31
5353 with :
5454 install_url : https://releases.nixos.org/nix/nix-2.32.2/install
You can’t perform that action at this time.
0 commit comments