From cdbbc71b0a1c5ec61b3ee66f41ef02fc11f6e0d9 Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Wed, 17 Jul 2024 10:04:02 +0200 Subject: [PATCH] ci: add nightly build for macos aarch64 --- .github/actions/install/action.yml | 1 + .github/workflows/build.yml | 33 ++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/.github/actions/install/action.yml b/.github/actions/install/action.yml index b42276cb..54aab09a 100644 --- a/.github/actions/install/action.yml +++ b/.github/actions/install/action.yml @@ -32,6 +32,7 @@ runs: steps: - name: Install apt deps + if: ${{ inputs.os == 'linux' }} shell: bash run: sudo apt-get install -y wget xz-utils python3 ca-certificates git pkg-config libglib2.0-dev gperf libexpat1-dev cmake clang diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8a854f30..5df73d07 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,3 +40,36 @@ jobs: allowUpdates: true artifacts: lightpanda-get-${{ env.ARCH }}-${{ env.OS }} tag: nightly + + build-macos-aarch64: + env: + ARCH: aarch64 + OS: macos + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.GH_CI_PAT }} + # fetch submodules recusively, to get zig-js-runtime submodules also. + submodules: recursive + + - uses: ./.github/actions/install + with: + os: ${{env.OS}} + arch: ${{env.ARCH}} + + - name: zig build + run: zig build --release=safe -Doptimize=ReleaseSafe -Dengine=v8 + + - name: Rename binary + run: mv zig-out/bin/browsercore-get lightpanda-get-${{ env.ARCH }}-${{ env.OS }} + + - name: Upload the build + uses: ncipollo/release-action@v1 + with: + allowUpdates: true + artifacts: lightpanda-get-${{ env.ARCH }}-${{ env.OS }} + tag: nightly