From b1e9341d5e7855c583d5653a7701fe849c2f779a Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Fri, 19 Sep 2025 14:20:42 +0200 Subject: [PATCH 1/4] ci: add ios build --- .github/workflows/build-release.yml | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index a2ed2df..cb2e257 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -139,3 +139,33 @@ jobs: with: allowUpdates: true artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a + + build-aarch64-ios: + env: + OS: ios + ARCH: aarch64 + + runs-on: macos-latest + steps: + - uses: mlugg/setup-zig@v2 + with: + version: ${{ env.ZIG_VERSION }} + + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - uses: actions/checkout@v4 + with: + submodules: recursive + fetch-depth: 0 + + - run: OS=macos zig build get-v8 # We force the OS to macos here b/c ios is not supported by get-v8 + - run: zig build -Doptimize=ReleaseSafe build-v8 + - run: mv v8/out/${{ env.OS }}/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a + + - name: Upload the build + uses: ncipollo/release-action@v1 + with: + allowUpdates: true + artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a From 101ac51a70a9266c8eff17479690258069393fd4 Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Fri, 19 Sep 2025 14:57:07 +0200 Subject: [PATCH 2/4] fix build OS when setting macos --- build-tools/utils.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-tools/utils.sh b/build-tools/utils.sh index 3834329..d451211 100644 --- a/build-tools/utils.sh +++ b/build-tools/utils.sh @@ -25,6 +25,7 @@ esac : "${OS:=unset}" case "$OS" in + macos) OS="mac" ;; unset) case "$OSTYPE" in darwin*) OS="mac" ;; @@ -32,4 +33,4 @@ case "$OS" in *) fail "unsupported platform: ${OSTYPE}" esac ;; -esac \ No newline at end of file +esac From 8daf24b1ca65001b99745dafab2a74ab6e43a96d Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Fri, 10 Oct 2025 09:01:30 +0200 Subject: [PATCH 3/4] ci: add TARGET_ENVIRONMENT for ios build --- .github/workflows/build-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index cb2e257..ca75f20 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -144,6 +144,7 @@ jobs: env: OS: ios ARCH: aarch64 + TARGET_ENVIRONMENT: simulator runs-on: macos-latest steps: From 6c22d905447880089c0f3304697b04b655951f1c Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Fri, 10 Oct 2025 13:37:41 +0200 Subject: [PATCH 4/4] add target env inot ios build --- .github/workflows/build-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index ca75f20..0bbb6dd 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -163,7 +163,7 @@ jobs: - run: OS=macos zig build get-v8 # We force the OS to macos here b/c ios is not supported by get-v8 - run: zig build -Doptimize=ReleaseSafe build-v8 - - run: mv v8/out/${{ env.OS }}/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a + - run: mv v8/out/${{ env.OS }}/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.TARGET_ENVIRONMENT }}_${{ env.ARCH }}.a - name: Upload the build uses: ncipollo/release-action@v1