Skip to content

Commit cdbbc71

Browse files
committed
ci: add nightly build for macos aarch64
1 parent bfa6f55 commit cdbbc71

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/actions/install/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ runs:
3232

3333
steps:
3434
- name: Install apt deps
35+
if: ${{ inputs.os == 'linux' }}
3536
shell: bash
3637
run: sudo apt-get install -y wget xz-utils python3 ca-certificates git pkg-config libglib2.0-dev gperf libexpat1-dev cmake clang
3738

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,36 @@ jobs:
4040
allowUpdates: true
4141
artifacts: lightpanda-get-${{ env.ARCH }}-${{ env.OS }}
4242
tag: nightly
43+
44+
build-macos-aarch64:
45+
env:
46+
ARCH: aarch64
47+
OS: macos
48+
49+
runs-on: macos-latest
50+
51+
steps:
52+
- uses: actions/checkout@v4
53+
with:
54+
fetch-depth: 0
55+
token: ${{ secrets.GH_CI_PAT }}
56+
# fetch submodules recusively, to get zig-js-runtime submodules also.
57+
submodules: recursive
58+
59+
- uses: ./.github/actions/install
60+
with:
61+
os: ${{env.OS}}
62+
arch: ${{env.ARCH}}
63+
64+
- name: zig build
65+
run: zig build --release=safe -Doptimize=ReleaseSafe -Dengine=v8
66+
67+
- name: Rename binary
68+
run: mv zig-out/bin/browsercore-get lightpanda-get-${{ env.ARCH }}-${{ env.OS }}
69+
70+
- name: Upload the build
71+
uses: ncipollo/release-action@v1
72+
with:
73+
allowUpdates: true
74+
artifacts: lightpanda-get-${{ env.ARCH }}-${{ env.OS }}
75+
tag: nightly

0 commit comments

Comments
 (0)