Skip to content

Commit

Permalink
ci: don't install Nix on self-hosted runners
Browse files Browse the repository at this point in the history
  • Loading branch information
lovesegfault committed Oct 12, 2023
1 parent d53fd02 commit 830a48d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ jobs:
system: ${{ matrix.attrs.hostPlatform }}
steps:
- uses: DeterminateSystems/nix-installer-action@v5
if: ${{ !contains(matrix.attrs.runsOn, 'self-hosted') }}
with:
extra-conf: ${{ env.nix-conf }}
- uses: cachix/cachix-action@v12
Expand All @@ -200,7 +201,7 @@ jobs:
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
extraPullNames: nix-community
- name: setup-aarch64-ssh
if: ${{ env.system == 'aarch64-linux' }}
if: ${{ env.system == 'aarch64-linux' && !contains(matrix.attrs.runsOn, 'self-hosted') }}
run: |
mkdir -p ~/.ssh
echo '${{ env.aarch64-ssh-config }}' > ~/.ssh/config
Expand Down

0 comments on commit 830a48d

Please sign in to comment.