From 0d291f1a360780cc55b65e0eb7b2ebbd9b8ac7fa Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Tue, 18 Mar 2025 11:27:09 +0100 Subject: [PATCH 1/3] ci: upgrade zig v8 version --- .github/actions/install/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/install/action.yml b/.github/actions/install/action.yml index 1486d44b1..150f9aa09 100644 --- a/.github/actions/install/action.yml +++ b/.github/actions/install/action.yml @@ -17,7 +17,7 @@ inputs: zig-v8: description: 'zig v8 version to install' required: false - default: 'v0.1.12' + default: 'v0.1.13' v8: description: 'v8 version to install' required: false From e79cd58c8f46b98c1ebef7fa11083e57bbf3fb12 Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Tue, 18 Mar 2025 11:28:39 +0100 Subject: [PATCH 2/3] ci: add macos x86_64 nightly build --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ Makefile | 3 +++ 2 files changed, 35 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 75e52eaa9..ccb42a83f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -106,3 +106,35 @@ jobs: allowUpdates: true artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }} tag: nightly + + build-macos-x86_64: + env: + ARCH: x86_64 + OS: macos + + runs-on: macos-13 + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + # 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 -Dgit_commit=$(git rev-parse --short ${{ github.sha }}) + + - name: Rename binary + run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }} + + - name: Upload the build + uses: ncipollo/release-action@v1 + with: + allowUpdates: true + artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }} + tag: nightly diff --git a/Makefile b/Makefile index 7f099b056..e9bc57168 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,9 @@ kernel = $(shell uname -ms) ifeq ($(kernel), Darwin arm64) OS := macos ARCH := aarch64 +else ifeq ($(kernel), Darwin x86_64) + OS := macos + ARCH := x86_64 else ifeq ($(kernel), Linux aarch64) OS := linux ARCH := aarch64 From c32853bfd62082d73e46cf24b7e82b3660fe3bf4 Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Wed, 19 Mar 2025 17:12:53 +0100 Subject: [PATCH 3/3] docker: update zig-v8 version --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1e1ecc302..0bdc89edd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ ARG ZIG=0.14.0 ARG ZIG_MINISIG=RWSGOq2NVecA2UPNdBUZykf1CCb147pkmdtYxgb3Ti+JO/wCYvhbAb/U ARG ARCH=x86_64 ARG V8=11.1.134 -ARG ZIG_V8=v0.1.12 +ARG ZIG_V8=v0.1.13 RUN apt-get update -yq && \ apt-get install -yq xz-utils \