Skip to content

Commit fb6e1e0

Browse files
committed
Try to cross compile to linux x86_64 to macOS aarch64
1 parent 3aecde6 commit fb6e1e0

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/build-cross.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ jobs:
6363
path: /tmp/ocaml.tar.zst
6464
retention-days: 1
6565

66-
cross-arm-linux-zig:
66+
cross-arm-macos-zig:
6767
runs-on: ubuntu-latest
6868
needs: non-cross
6969
env:
7070
ZIGPATH: /home/runner/zig
7171
ZIGURL: https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0.tar.xz
72-
TARGET: aarch64-linux-gnu
73-
ZTARGET: aarch64-linux-gnu.2.34
72+
TARGET: aarch64-apple-darwin
73+
ZTARGET: aarch64-macos
7474
steps:
7575
- name: Download Artifact
7676
uses: actions/download-artifact@v4
@@ -83,7 +83,6 @@ jobs:
8383
rm -f ocaml.tar.zst
8484
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
8585
echo "$ZIGPATH" >> "$GITHUB_PATH"
86-
sudo apt-get install -y libc6-arm64-cross qemu-user
8786
- name: Restore the zig compiler from cache
8887
uses: actions/cache/restore@v4
8988
id: cache
@@ -134,7 +133,3 @@ jobs:
134133
set -x
135134
cat example.ml
136135
$HOME/cross/bin/ocamlopt.opt -I $HOME/cross/lib/ocaml/compiler-libs/ ocamlcommon.cmxa ocamloptcomp.cmxa example.ml -o example -verbose
137-
- name: Run the small example program
138-
run: |
139-
set -x
140-
qemu-aarch64 -L /usr/aarch64-linux-gnu example

0 commit comments

Comments
 (0)