Skip to content

Commit 4e84f0a

Browse files
committed
wip
1 parent c365173 commit 4e84f0a

File tree

1 file changed

+114
-112
lines changed

1 file changed

+114
-112
lines changed

.github/workflows/build-release.yml

Lines changed: 114 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- "**"
77
# Allows you to run this workflow manually from the Actions tab
88
workflow_dispatch:
9+
pull_request:
10+
types: [opened, synchronize, reopened, ready_for_review]
911

1012
permissions:
1113
contents: write
@@ -14,113 +16,113 @@ env:
1416
ZIG_VERSION: 0.13.0
1517

1618
jobs:
17-
build-x86_64-linux:
18-
env:
19-
OS: linux
20-
ARCH: x86_64
21-
22-
runs-on: ubuntu-24.04
23-
steps:
24-
- uses: mlugg/setup-zig@v1
25-
with:
26-
version: ${{ env.ZIG_VERSION }}
27-
28-
- uses: actions/checkout@v4
29-
with:
30-
submodules: recursive
31-
fetch-depth: 0
32-
33-
- name: Read version
34-
id: read-version
35-
run: |
36-
echo "version=`cat V8_REVISION`" >> "$GITHUB_OUTPUT"
37-
38-
- run: |
39-
sudo apt-get update
40-
sudo apt-get install -yq libglib2.0-dev
41-
42-
- run: zig build get-tools
43-
- run: zig build get-v8
44-
- run: zig build -Doptimize=ReleaseSafe
45-
- 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
46-
47-
- name: Upload the build
48-
uses: ncipollo/release-action@v1
49-
with:
50-
allowUpdates: true
51-
artifacts: libc_v8_${{steps.read-version.outputs.version}}_${{ env.OS }}_${{ env.ARCH }}.a
52-
53-
build-aarch64-macos:
54-
env:
55-
OS: macos
56-
ARCH: aarch64
57-
58-
runs-on: macos-latest
59-
steps:
60-
- uses: mlugg/setup-zig@v1
61-
with:
62-
version: ${{ env.ZIG_VERSION }}
63-
64-
- uses: actions/setup-python@v5
65-
with:
66-
python-version: '3.11'
67-
68-
- uses: actions/checkout@v4
69-
with:
70-
submodules: recursive
71-
fetch-depth: 0
72-
73-
- name: Read version
74-
id: read-version
75-
run: |
76-
echo "version=`cat V8_REVISION`" >> "$GITHUB_OUTPUT"
77-
78-
- run: zig build get-tools
79-
- run: zig build get-v8
80-
- run: zig build -Doptimize=ReleaseSafe
81-
- 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
82-
83-
- name: Upload the build
84-
uses: ncipollo/release-action@v1
85-
with:
86-
allowUpdates: true
87-
artifacts: libc_v8_${{steps.read-version.outputs.version}}_${{ env.OS }}_${{ env.ARCH }}.a
88-
89-
build-arm64-linux:
90-
env:
91-
OS: linux
92-
ARCH: aarch64
93-
94-
runs-on: ubuntu-24.04-arm
95-
steps:
96-
- uses: mlugg/setup-zig@v1
97-
with:
98-
version: ${{ env.ZIG_VERSION }}
99-
100-
- uses: actions/checkout@v4
101-
with:
102-
submodules: recursive
103-
fetch-depth: 0
104-
105-
- name: Read version
106-
id: read-version
107-
run: |
108-
echo "version=`cat V8_REVISION`" >> "$GITHUB_OUTPUT"
109-
110-
- run: |
111-
sudo apt-get update
112-
sudo apt-get install -yq libglib2.0-dev
113-
114-
- run: zig build get-tools
115-
- run: zig build get-v8
116-
- run: zig build -Doptimize=ReleaseSafe
117-
- 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
118-
119-
- name: Upload the build
120-
uses: ncipollo/release-action@v1
121-
with:
122-
allowUpdates: true
123-
artifacts: libc_v8_${{steps.read-version.outputs.version}}_${{ env.OS }}_${{ env.ARCH }}.a
19+
# build-x86_64-linux:
20+
# env:
21+
# OS: linux
22+
# ARCH: x86_64
23+
24+
# runs-on: ubuntu-24.04
25+
# steps:
26+
# - uses: mlugg/setup-zig@v1
27+
# with:
28+
# version: ${{ env.ZIG_VERSION }}
29+
30+
# - uses: actions/checkout@v4
31+
# with:
32+
# submodules: recursive
33+
# fetch-depth: 0
34+
35+
# - name: Read version
36+
# id: read-version
37+
# run: |
38+
# echo "version=`cat V8_REVISION`" >> "$GITHUB_OUTPUT"
39+
40+
# - run: |
41+
# sudo apt-get update
42+
# sudo apt-get install -yq libglib2.0-dev
43+
44+
# - run: zig build get-tools
45+
# - run: zig build get-v8
46+
# - run: zig build -Doptimize=ReleaseSafe
47+
# - 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
48+
49+
# - name: Upload the build
50+
# uses: ncipollo/release-action@v1
51+
# with:
52+
# allowUpdates: true
53+
# artifacts: libc_v8_${{steps.read-version.outputs.version}}_${{ env.OS }}_${{ env.ARCH }}.a
54+
55+
# build-aarch64-macos:
56+
# env:
57+
# OS: macos
58+
# ARCH: aarch64
59+
60+
# runs-on: macos-latest
61+
# steps:
62+
# - uses: mlugg/setup-zig@v1
63+
# with:
64+
# version: ${{ env.ZIG_VERSION }}
65+
66+
# - uses: actions/setup-python@v5
67+
# with:
68+
# python-version: '3.11'
69+
70+
# - uses: actions/checkout@v4
71+
# with:
72+
# submodules: recursive
73+
# fetch-depth: 0
74+
75+
# - name: Read version
76+
# id: read-version
77+
# run: |
78+
# echo "version=`cat V8_REVISION`" >> "$GITHUB_OUTPUT"
79+
80+
# - run: zig build get-tools
81+
# - run: zig build get-v8
82+
# - run: zig build -Doptimize=ReleaseSafe
83+
# - 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
84+
85+
# - name: Upload the build
86+
# uses: ncipollo/release-action@v1
87+
# with:
88+
# allowUpdates: true
89+
# artifacts: libc_v8_${{steps.read-version.outputs.version}}_${{ env.OS }}_${{ env.ARCH }}.a
90+
91+
# build-arm64-linux:
92+
# env:
93+
# OS: linux
94+
# ARCH: aarch64
95+
96+
# runs-on: ubuntu-24.04-arm
97+
# steps:
98+
# - uses: mlugg/setup-zig@v1
99+
# with:
100+
# version: ${{ env.ZIG_VERSION }}
101+
102+
# - uses: actions/checkout@v4
103+
# with:
104+
# submodules: recursive
105+
# fetch-depth: 0
106+
107+
# - name: Read version
108+
# id: read-version
109+
# run: |
110+
# echo "version=`cat V8_REVISION`" >> "$GITHUB_OUTPUT"
111+
112+
# - run: |
113+
# sudo apt-get update
114+
# sudo apt-get install -yq libglib2.0-dev
115+
116+
# - run: zig build get-tools
117+
# - run: zig build get-v8
118+
# - run: zig build -Doptimize=ReleaseSafe
119+
# - 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
120+
121+
# - name: Upload the build
122+
# uses: ncipollo/release-action@v1
123+
# with:
124+
# allowUpdates: true
125+
# artifacts: libc_v8_${{steps.read-version.outputs.version}}_${{ env.OS }}_${{ env.ARCH }}.a
124126

125127
build-x86_64-macos:
126128
env:
@@ -152,8 +154,8 @@ jobs:
152154
- run: zig build -Doptimize=ReleaseSafe
153155
- 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
154156

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
157+
# - name: Upload the build
158+
# uses: ncipollo/release-action@v1
159+
# with:
160+
# allowUpdates: true
161+
# artifacts: libc_v8_${{steps.read-version.outputs.version}}_${{ env.OS }}_${{ env.ARCH }}.a

0 commit comments

Comments
 (0)