Skip to content

Commit ff97f0b

Browse files
Merge pull request #97 from lightpanda-io/apple-platforms-build
add ios build release
2 parents 4e5ef6c + 6c22d90 commit ff97f0b

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/build-release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,34 @@ jobs:
139139
with:
140140
allowUpdates: true
141141
artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a
142+
143+
build-aarch64-ios:
144+
env:
145+
OS: ios
146+
ARCH: aarch64
147+
TARGET_ENVIRONMENT: simulator
148+
149+
runs-on: macos-latest
150+
steps:
151+
- uses: mlugg/setup-zig@v2
152+
with:
153+
version: ${{ env.ZIG_VERSION }}
154+
155+
- uses: actions/setup-python@v5
156+
with:
157+
python-version: '3.11'
158+
159+
- uses: actions/checkout@v4
160+
with:
161+
submodules: recursive
162+
fetch-depth: 0
163+
164+
- run: OS=macos zig build get-v8 # We force the OS to macos here b/c ios is not supported by get-v8
165+
- run: zig build -Doptimize=ReleaseSafe build-v8
166+
- 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
167+
168+
- name: Upload the build
169+
uses: ncipollo/release-action@v1
170+
with:
171+
allowUpdates: true
172+
artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a

build-tools/utils.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ esac
2525

2626
: "${OS:=unset}"
2727
case "$OS" in
28+
macos) OS="mac" ;;
2829
unset)
2930
case "$OSTYPE" in
3031
darwin*) OS="mac" ;;
3132
linux*) OS="linux" ;;
3233
*) fail "unsupported platform: ${OSTYPE}"
3334
esac
3435
;;
35-
esac
36+
esac

0 commit comments

Comments
 (0)