Skip to content

Commit 23718cd

Browse files
committed
Revert "wip for tests"
This reverts commit 2caa471.
1 parent 9077ae0 commit 23718cd

File tree

1 file changed

+95
-2
lines changed

1 file changed

+95
-2
lines changed

.github/workflows/build-release.yml

Lines changed: 95 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
tags:
66
- "**"
7-
pull_request:
8-
types: [opened, synchronize, reopened, ready_for_review]
97
# Allows you to run this workflow manually from the Actions tab
108
workflow_dispatch:
119

@@ -17,6 +15,65 @@ env:
1715
V8_REVISION: 13.6.233.8
1816

1917
jobs:
18+
build-x86_64-linux:
19+
env:
20+
OS: linux
21+
ARCH: x86_64
22+
23+
runs-on: ubuntu-22.04
24+
steps:
25+
- uses: mlugg/setup-zig@v2
26+
with:
27+
version: ${{ env.ZIG_VERSION }}
28+
29+
- uses: actions/checkout@v4
30+
with:
31+
submodules: recursive
32+
fetch-depth: 0
33+
34+
- run: |
35+
sudo apt-get update
36+
sudo apt-get install -yq libglib2.0-dev
37+
38+
- run: zig build get-v8
39+
- run: zig build -Doptimize=ReleaseSafe build-v8
40+
- run: mv v8/out/${{ env.OS }}/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a
41+
42+
- name: Upload the build
43+
uses: ncipollo/release-action@v1
44+
with:
45+
allowUpdates: true
46+
artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a
47+
48+
build-aarch64-macos:
49+
env:
50+
OS: macos
51+
ARCH: aarch64
52+
53+
runs-on: macos-latest
54+
steps:
55+
- uses: mlugg/setup-zig@v2
56+
with:
57+
version: ${{ env.ZIG_VERSION }}
58+
59+
- uses: actions/setup-python@v5
60+
with:
61+
python-version: '3.11'
62+
63+
- uses: actions/checkout@v4
64+
with:
65+
submodules: recursive
66+
fetch-depth: 0
67+
68+
- run: zig build get-v8
69+
- run: zig build -Doptimize=ReleaseSafe build-v8
70+
- run: mv v8/out/${{ env.OS }}/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a
71+
72+
- name: Upload the build
73+
uses: ncipollo/release-action@v1
74+
with:
75+
allowUpdates: true
76+
artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a
2077

2178
build-arm64-linux:
2279
env:
@@ -46,3 +103,39 @@ jobs:
46103
- run: zig build get-v8
47104
- run: zig build -Doptimize=ReleaseSafe build-v8
48105
- run: mv v8/out/${{ env.OS }}/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a
106+
107+
- name: Upload the build
108+
uses: ncipollo/release-action@v1
109+
with:
110+
allowUpdates: true
111+
artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a
112+
113+
build-x86_64-macos:
114+
env:
115+
OS: macos
116+
ARCH: x86_64
117+
118+
runs-on: macos-13
119+
steps:
120+
- uses: mlugg/setup-zig@v2
121+
with:
122+
version: ${{ env.ZIG_VERSION }}
123+
124+
- uses: actions/setup-python@v5
125+
with:
126+
python-version: '3.11'
127+
128+
- uses: actions/checkout@v4
129+
with:
130+
submodules: recursive
131+
fetch-depth: 0
132+
133+
- run: zig build get-v8
134+
- run: zig build -Doptimize=ReleaseSafe build-v8
135+
- run: mv v8/out/${{ env.OS }}/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a
136+
137+
- name: Upload the build
138+
uses: ncipollo/release-action@v1
139+
with:
140+
allowUpdates: true
141+
artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a

0 commit comments

Comments
 (0)