Skip to content

Commit e79cd58

Browse files
committed
ci: add macos x86_64 nightly build
1 parent 0d291f1 commit e79cd58

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,35 @@ jobs:
106106
allowUpdates: true
107107
artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
108108
tag: nightly
109+
110+
build-macos-x86_64:
111+
env:
112+
ARCH: x86_64
113+
OS: macos
114+
115+
runs-on: macos-13
116+
117+
steps:
118+
- uses: actions/checkout@v4
119+
with:
120+
fetch-depth: 0
121+
# fetch submodules recusively, to get zig-js-runtime submodules also.
122+
submodules: recursive
123+
124+
- uses: ./.github/actions/install
125+
with:
126+
os: ${{env.OS}}
127+
arch: ${{env.ARCH}}
128+
129+
- name: zig build
130+
run: zig build --release=safe -Doptimize=ReleaseSafe -Dengine=v8 -Dgit_commit=$(git rev-parse --short ${{ github.sha }})
131+
132+
- name: Rename binary
133+
run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
134+
135+
- name: Upload the build
136+
uses: ncipollo/release-action@v1
137+
with:
138+
allowUpdates: true
139+
artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
140+
tag: nightly

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ kernel = $(shell uname -ms)
1111
ifeq ($(kernel), Darwin arm64)
1212
OS := macos
1313
ARCH := aarch64
14+
else ifeq ($(kernel), Darwin x86_64)
15+
OS := macos
16+
ARCH := x86_64
1417
else ifeq ($(kernel), Linux aarch64)
1518
OS := linux
1619
ARCH := aarch64

0 commit comments

Comments
 (0)