Skip to content

Commit 1fbcf2f

Browse files
Merge pull request #42 from lightpanda-io/ci-macintel
Ci macintel
2 parents 2148c4b + c365173 commit 1fbcf2f

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/build-release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,39 @@ jobs:
121121
with:
122122
allowUpdates: true
123123
artifacts: libc_v8_${{steps.read-version.outputs.version}}_${{ env.OS }}_${{ env.ARCH }}.a
124+
125+
build-x86_64-macos:
126+
env:
127+
OS: macos
128+
ARCH: x86_64
129+
130+
runs-on: macos-13
131+
steps:
132+
- uses: mlugg/setup-zig@v1
133+
with:
134+
version: ${{ env.ZIG_VERSION }}
135+
136+
- uses: actions/setup-python@v5
137+
with:
138+
python-version: '3.11'
139+
140+
- uses: actions/checkout@v4
141+
with:
142+
submodules: recursive
143+
fetch-depth: 0
144+
145+
- name: Read version
146+
id: read-version
147+
run: |
148+
echo "version=`cat V8_REVISION`" >> "$GITHUB_OUTPUT"
149+
150+
- run: zig build get-tools
151+
- run: zig build get-v8
152+
- run: zig build -Doptimize=ReleaseSafe
153+
- run: mv v8-build/${{ env.ARCH }}-${{ env.OS }}/release/ninja/obj/zig/libc_v8.a libc_v8_${{steps.read-version.outputs.version}}_${{ env.OS }}_${{ env.ARCH }}.a
154+
155+
- name: Upload the build
156+
uses: ncipollo/release-action@v1
157+
with:
158+
allowUpdates: true
159+
artifacts: libc_v8_${{steps.read-version.outputs.version}}_${{ env.OS }}_${{ env.ARCH }}.a

0 commit comments

Comments
 (0)