Skip to content

Commit 3614389

Browse files
authored
fix: setup swapfile only if runner architecture is X64 or X86 (#3876)
Using matrix.os only works on self-hosted. SH e2e test on other repositories would still fail. Refer to https://docs.github.com/en/actions/reference/workflows-and-actions/contexts#runner-context
1 parent 0f606d2 commit 3614389

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ runs:
144144
145145
- name: Setup swapfile
146146
shell: bash
147-
if: matrix.os == 'ubuntu-24.04'
147+
if: runner.arch == 'X64' || runner.arch == 'X86'
148148
run: |
149149
sudo fallocate -l 16G /swapfile
150150
sudo chmod 600 /swapfile

0 commit comments

Comments
 (0)