Skip to content

Commit a9435bd

Browse files
committed
fix: limit to arm-native-runner
1 parent 321fb79 commit a9435bd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/actions/nix-install-ephemeral/action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)