Skip to content

Commit 364204b

Browse files
committed
wip
1 parent b94068b commit 364204b

File tree

1 file changed

+97
-95
lines changed

1 file changed

+97
-95
lines changed

.github/workflows/build.yml

Lines changed: 97 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -6,106 +6,108 @@ 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
1214

1315
jobs:
14-
build-linux-x86_64:
15-
env:
16-
ARCH: x86_64
17-
OS: linux
18-
19-
runs-on: ubuntu-24.04
20-
21-
steps:
22-
- uses: actions/checkout@v4
23-
with:
24-
fetch-depth: 0
25-
# fetch submodules recusively, to get zig-js-runtime submodules also.
26-
submodules: recursive
27-
28-
- uses: ./.github/actions/install
29-
with:
30-
os: ${{env.OS}}
31-
arch: ${{env.ARCH}}
32-
33-
- name: zig build
34-
run: zig build --release=safe -Doptimize=ReleaseSafe -Dengine=v8 -Dcpu=x86_64 -Dgit_commit=$(git rev-parse --short ${{ github.sha }})
35-
36-
- name: Rename binary
37-
run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
38-
39-
- name: Upload the build
40-
uses: ncipollo/release-action@v1
41-
with:
42-
allowUpdates: true
43-
artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
44-
tag: nightly
45-
46-
build-linux-aarch64:
47-
env:
48-
ARCH: aarch64
49-
OS: linux
50-
51-
runs-on: ubuntu-24.04-arm
52-
53-
steps:
54-
- uses: actions/checkout@v4
55-
with:
56-
fetch-depth: 0
57-
# fetch submodules recusively, to get zig-js-runtime submodules also.
58-
submodules: recursive
59-
60-
- uses: ./.github/actions/install
61-
with:
62-
os: ${{env.OS}}
63-
arch: ${{env.ARCH}}
64-
65-
- name: zig build
66-
run: zig build --release=safe -Doptimize=ReleaseSafe -Dengine=v8 -Dgit_commit=$(git rev-parse --short ${{ github.sha }})
67-
68-
- name: Rename binary
69-
run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
70-
71-
- name: Upload the build
72-
uses: ncipollo/release-action@v1
73-
with:
74-
allowUpdates: true
75-
artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
76-
tag: nightly
77-
78-
build-macos-aarch64:
79-
env:
80-
ARCH: aarch64
81-
OS: macos
82-
83-
runs-on: macos-latest
84-
85-
steps:
86-
- uses: actions/checkout@v4
87-
with:
88-
fetch-depth: 0
89-
# fetch submodules recusively, to get zig-js-runtime submodules also.
90-
submodules: recursive
91-
92-
- uses: ./.github/actions/install
93-
with:
94-
os: ${{env.OS}}
95-
arch: ${{env.ARCH}}
96-
97-
- name: zig build
98-
run: zig build --release=safe -Doptimize=ReleaseSafe -Dengine=v8 -Dgit_commit=$(git rev-parse --short ${{ github.sha }})
99-
100-
- name: Rename binary
101-
run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
102-
103-
- name: Upload the build
104-
uses: ncipollo/release-action@v1
105-
with:
106-
allowUpdates: true
107-
artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
108-
tag: nightly
16+
# build-linux-x86_64:
17+
# env:
18+
# ARCH: x86_64
19+
# OS: linux
20+
21+
# runs-on: ubuntu-24.04
22+
23+
# steps:
24+
# - uses: actions/checkout@v4
25+
# with:
26+
# fetch-depth: 0
27+
# # fetch submodules recusively, to get zig-js-runtime submodules also.
28+
# submodules: recursive
29+
30+
# - uses: ./.github/actions/install
31+
# with:
32+
# os: ${{env.OS}}
33+
# arch: ${{env.ARCH}}
34+
35+
# - name: zig build
36+
# run: zig build --release=safe -Doptimize=ReleaseSafe -Dengine=v8 -Dcpu=x86_64 -Dgit_commit=$(git rev-parse --short ${{ github.sha }})
37+
38+
# - name: Rename binary
39+
# run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
40+
41+
# - name: Upload the build
42+
# uses: ncipollo/release-action@v1
43+
# with:
44+
# allowUpdates: true
45+
# artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
46+
# tag: nightly
47+
48+
# build-linux-aarch64:
49+
# env:
50+
# ARCH: aarch64
51+
# OS: linux
52+
53+
# runs-on: ubuntu-24.04-arm
54+
55+
# steps:
56+
# - uses: actions/checkout@v4
57+
# with:
58+
# fetch-depth: 0
59+
# # fetch submodules recusively, to get zig-js-runtime submodules also.
60+
# submodules: recursive
61+
62+
# - uses: ./.github/actions/install
63+
# with:
64+
# os: ${{env.OS}}
65+
# arch: ${{env.ARCH}}
66+
67+
# - name: zig build
68+
# run: zig build --release=safe -Doptimize=ReleaseSafe -Dengine=v8 -Dgit_commit=$(git rev-parse --short ${{ github.sha }})
69+
70+
# - name: Rename binary
71+
# run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
72+
73+
# - name: Upload the build
74+
# uses: ncipollo/release-action@v1
75+
# with:
76+
# allowUpdates: true
77+
# artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
78+
# tag: nightly
79+
80+
# build-macos-aarch64:
81+
# env:
82+
# ARCH: aarch64
83+
# OS: macos
84+
85+
# runs-on: macos-latest
86+
87+
# steps:
88+
# - uses: actions/checkout@v4
89+
# with:
90+
# fetch-depth: 0
91+
# # fetch submodules recusively, to get zig-js-runtime submodules also.
92+
# submodules: recursive
93+
94+
# - uses: ./.github/actions/install
95+
# with:
96+
# os: ${{env.OS}}
97+
# arch: ${{env.ARCH}}
98+
99+
# - name: zig build
100+
# run: zig build --release=safe -Doptimize=ReleaseSafe -Dengine=v8 -Dgit_commit=$(git rev-parse --short ${{ github.sha }})
101+
102+
# - name: Rename binary
103+
# run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
104+
105+
# - name: Upload the build
106+
# uses: ncipollo/release-action@v1
107+
# with:
108+
# allowUpdates: true
109+
# artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
110+
# tag: nightly
109111

110112
build-macos-x86_64:
111113
env:

0 commit comments

Comments
 (0)