Skip to content

Commit 5502bcb

Browse files
committed
Update how we fix the execution of APE program
1 parent ad84e1e commit 5502bcb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ jobs:
1717
allow-prerelease-opam: true
1818
# See jart/cosmopolitan#3
1919
- name: Fix binfmt and Cosmopolitan
20-
run: sudo sh -c "echo ':APE:M::MZqFpD::/bin/sh:' >/proc/sys/fs/binfmt_misc/register"
20+
run: |
21+
sudo wget -O /usr/bin/ape https://cosmo.zip/pub/cosmos/bin/ape-$(uname -m).elf
22+
sudo chmod +x /usr/bin/ape
23+
sudo sh -c "echo ':APE:M::MZqFpD::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register"
2124
- name: Use the upstream version of OCaml 5.3.0
2225
run: opam switch create 5.3.0
2326
- name: Pinning packages

0 commit comments

Comments
 (0)