Skip to content

Commit d9ff4c8

Browse files
committed
ci: add ios lib build
1 parent c1dd864 commit d9ff4c8

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,33 @@ jobs:
175175
allowUpdates: true
176176
artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
177177
tag: nightly
178+
179+
build-aarch64-ios:
180+
env:
181+
OS: ios
182+
ARCH: aarch64
183+
TARGET_ENVIRONMENT: simulator
184+
185+
# macos-15 runs on arm CPU. see
186+
# https://github.com/actions/runner-images?tab=readme-ov-file
187+
runs-on: macos-15
188+
timeout-minutes: 15
189+
190+
steps:
191+
- uses: actions/checkout@v4
192+
with:
193+
fetch-depth: 0
194+
# fetch submodules recusively, to get zig-js-runtime submodules also.
195+
submodules: recursive
196+
197+
- uses: ./.github/actions/install
198+
with:
199+
os: ${{env.OS}}
200+
arch: ${{env.ARCH}}
201+
target-env: ${{env.TARGET_ENVIRONMENT}}
202+
203+
- name: zig build
204+
run: zig build --release=safe -Doptimize=ReleaseSafe -Dgit_commit=$(git rev-parse --short ${{ github.sha }}) static-build
205+
206+
- name: Rename binary
207+
run: mv zig-out/lib/liblightpanda.a liblightpanda-${{ env.ARCH }}-${{ env.OS }}-{{ TARGET_ENVIRONMENT }}.a

0 commit comments

Comments
 (0)