diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index a2ed2df..0bbb6dd 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -139,3 +139,34 @@ jobs: with: allowUpdates: true artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a + + build-aarch64-ios: + env: + OS: ios + ARCH: aarch64 + TARGET_ENVIRONMENT: simulator + + 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.TARGET_ENVIRONMENT }}_${{ 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 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