Skip to content

Commit efa15ff

Browse files
committed
Turn off binfmt_misc emulation
This shouldn't make a difference, but if the runner didn't support ARMv7 executables and was running them automatically via emulation, then this should cause that to fail. So this increases the confidence of the test.
1 parent 496d9c1 commit efa15ff

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/check-compat.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ jobs:
1010
- name: Check out repository
1111
uses: actions/checkout@v4
1212

13-
- name: Try to run the tracked ARMv7 binary
13+
- name: Disable binfmt_misc to show the binary runs unemulated
14+
run: |
15+
path='/proc/sys/fs/binfmt_misc/status'
16+
echo 0 | sudo tee -- "$path"
17+
grep -Fxq disabled -- "$path"
18+
19+
- name: Run the tracked ARMv7 binary
1420
run: |
1521
set +e -x
1622
./hello

0 commit comments

Comments
 (0)