File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ kernel = $(shell uname -ms)
1111ifeq ($(kernel ) , Darwin arm64)
1212 OS := macos
1313 ARCH := aarch64
14+ else ifeq ($(kernel), Darwin x86_64)
15+ OS := macos
16+ ARCH := x86_64
1417else ifeq ($(kernel), Linux aarch64)
1518 OS := linux
1619 ARCH := aarch64
You can’t perform that action at this time.
0 commit comments