Skip to content

Commit c380473

Browse files
committed
remove me
1 parent e3f571a commit c380473

File tree

1 file changed

+161
-158
lines changed

1 file changed

+161
-158
lines changed

.github/workflows/build.yml

Lines changed: 161 additions & 158 deletions
Original file line numberDiff line numberDiff line change
@@ -13,168 +13,171 @@ on:
1313
# Allows you to run this workflow manually from the Actions tab
1414
workflow_dispatch:
1515

16+
pull_request:
17+
types: [opened, synchronize, reopened, ready_for_review]
18+
1619
permissions:
1720
contents: write
1821

1922
jobs:
20-
build-linux-x86_64:
21-
env:
22-
ARCH: x86_64
23-
OS: linux
24-
25-
runs-on: ubuntu-22.04
26-
timeout-minutes: 15
27-
28-
steps:
29-
- uses: actions/checkout@v4
30-
with:
31-
fetch-depth: 0
32-
# fetch submodules recusively, to get zig-js-runtime submodules also.
33-
submodules: recursive
34-
35-
- uses: ./.github/actions/install
36-
with:
37-
os: ${{env.OS}}
38-
arch: ${{env.ARCH}}
39-
40-
- name: zig build
41-
run: zig build --release=safe -Doptimize=ReleaseSafe -Dcpu=x86_64 -Dgit_commit=$(git rev-parse --short ${{ github.sha }})
42-
43-
- name: Rename binary
44-
run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
45-
46-
- name: upload on s3
47-
run: |
48-
export DIR=`git show --no-patch --no-notes --pretty='%cs_%h'`
49-
aws s3 cp --storage-class=GLACIER_IR lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/${DIR}/lightpanda-${{ env.ARCH }}-${{ env.OS }}
50-
51-
- name: Upload the build
52-
uses: ncipollo/release-action@v1
53-
with:
54-
allowUpdates: true
55-
artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
56-
tag: nightly
57-
58-
build-linux-aarch64:
59-
env:
60-
ARCH: aarch64
61-
OS: linux
62-
63-
runs-on: ubuntu-22.04-arm
64-
timeout-minutes: 15
65-
66-
steps:
67-
- uses: actions/checkout@v4
68-
with:
69-
fetch-depth: 0
70-
# fetch submodules recusively, to get zig-js-runtime submodules also.
71-
submodules: recursive
72-
73-
- uses: ./.github/actions/install
74-
with:
75-
os: ${{env.OS}}
76-
arch: ${{env.ARCH}}
77-
78-
- name: zig build
79-
run: zig build --release=safe -Doptimize=ReleaseSafe -Dcpu=generic -Dgit_commit=$(git rev-parse --short ${{ github.sha }})
80-
81-
- name: Rename binary
82-
run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
83-
84-
- name: upload on s3
85-
run: |
86-
export DIR=`git show --no-patch --no-notes --pretty='%cs_%h'`
87-
aws s3 cp --storage-class=GLACIER_IR lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/${DIR}/lightpanda-${{ env.ARCH }}-${{ env.OS }}
88-
89-
- name: Upload the build
90-
uses: ncipollo/release-action@v1
91-
with:
92-
allowUpdates: true
93-
artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
94-
tag: nightly
95-
96-
build-macos-aarch64:
97-
env:
98-
ARCH: aarch64
99-
OS: macos
100-
101-
# macos-14 runs on arm CPU. see
102-
# https://github.com/actions/runner-images?tab=readme-ov-file
103-
runs-on: macos-14
104-
timeout-minutes: 15
105-
106-
steps:
107-
- uses: actions/checkout@v4
108-
with:
109-
fetch-depth: 0
110-
# fetch submodules recusively, to get zig-js-runtime submodules also.
111-
submodules: recursive
112-
113-
- uses: ./.github/actions/install
114-
with:
115-
os: ${{env.OS}}
116-
arch: ${{env.ARCH}}
117-
118-
- name: zig build
119-
run: zig build --release=safe -Doptimize=ReleaseSafe -Dgit_commit=$(git rev-parse --short ${{ github.sha }})
120-
121-
- name: Rename binary
122-
run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
123-
124-
- name: upload on s3
125-
run: |
126-
export DIR=`git show --no-patch --no-notes --pretty='%cs_%h'`
127-
aws s3 cp --storage-class=GLACIER_IR lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/${DIR}/lightpanda-${{ env.ARCH }}-${{ env.OS }}
128-
129-
- name: Upload the build
130-
uses: ncipollo/release-action@v1
131-
with:
132-
allowUpdates: true
133-
artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
134-
tag: nightly
135-
136-
build-macos-x86_64:
137-
env:
138-
ARCH: x86_64
139-
OS: macos
140-
141-
# macos-13 runs on x86 CPU. see
142-
# https://github.com/actions/runner-images?tab=readme-ov-file
143-
# If we want to build for macos-14 or superior, we need to switch to
144-
# macos-14-large.
145-
# No need for now, but maybe we will need it in the short term.
146-
runs-on: macos-13
147-
timeout-minutes: 15
148-
149-
steps:
150-
- uses: actions/checkout@v4
151-
with:
152-
fetch-depth: 0
153-
# fetch submodules recusively, to get zig-js-runtime submodules also.
154-
submodules: recursive
155-
156-
- uses: ./.github/actions/install
157-
with:
158-
os: ${{env.OS}}
159-
arch: ${{env.ARCH}}
160-
161-
- name: zig build
162-
run: zig build --release=safe -Doptimize=ReleaseSafe -Dgit_commit=$(git rev-parse --short ${{ github.sha }})
163-
164-
- name: Rename binary
165-
run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
166-
167-
- name: upload on s3
168-
run: |
169-
export DIR=`git show --no-patch --no-notes --pretty='%cs_%h'`
170-
aws s3 cp --storage-class=GLACIER_IR lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/${DIR}/lightpanda-${{ env.ARCH }}-${{ env.OS }}
171-
172-
- name: Upload the build
173-
uses: ncipollo/release-action@v1
174-
with:
175-
allowUpdates: true
176-
artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
177-
tag: nightly
23+
# build-linux-x86_64:
24+
# env:
25+
# ARCH: x86_64
26+
# OS: linux
27+
28+
# runs-on: ubuntu-22.04
29+
# timeout-minutes: 15
30+
31+
# steps:
32+
# - uses: actions/checkout@v4
33+
# with:
34+
# fetch-depth: 0
35+
# # fetch submodules recusively, to get zig-js-runtime submodules also.
36+
# submodules: recursive
37+
38+
# - uses: ./.github/actions/install
39+
# with:
40+
# os: ${{env.OS}}
41+
# arch: ${{env.ARCH}}
42+
43+
# - name: zig build
44+
# run: zig build --release=safe -Doptimize=ReleaseSafe -Dcpu=x86_64 -Dgit_commit=$(git rev-parse --short ${{ github.sha }})
45+
46+
# - name: Rename binary
47+
# run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
48+
49+
# - name: upload on s3
50+
# run: |
51+
# export DIR=`git show --no-patch --no-notes --pretty='%cs_%h'`
52+
# aws s3 cp --storage-class=GLACIER_IR lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/${DIR}/lightpanda-${{ env.ARCH }}-${{ env.OS }}
53+
54+
# - name: Upload the build
55+
# uses: ncipollo/release-action@v1
56+
# with:
57+
# allowUpdates: true
58+
# artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
59+
# tag: nightly
60+
61+
# build-linux-aarch64:
62+
# env:
63+
# ARCH: aarch64
64+
# OS: linux
65+
66+
# runs-on: ubuntu-22.04-arm
67+
# timeout-minutes: 15
68+
69+
# steps:
70+
# - uses: actions/checkout@v4
71+
# with:
72+
# fetch-depth: 0
73+
# # fetch submodules recusively, to get zig-js-runtime submodules also.
74+
# submodules: recursive
75+
76+
# - uses: ./.github/actions/install
77+
# with:
78+
# os: ${{env.OS}}
79+
# arch: ${{env.ARCH}}
80+
81+
# - name: zig build
82+
# run: zig build --release=safe -Doptimize=ReleaseSafe -Dcpu=generic -Dgit_commit=$(git rev-parse --short ${{ github.sha }})
83+
84+
# - name: Rename binary
85+
# run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
86+
87+
# - name: upload on s3
88+
# run: |
89+
# export DIR=`git show --no-patch --no-notes --pretty='%cs_%h'`
90+
# aws s3 cp --storage-class=GLACIER_IR lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/${DIR}/lightpanda-${{ env.ARCH }}-${{ env.OS }}
91+
92+
# - name: Upload the build
93+
# uses: ncipollo/release-action@v1
94+
# with:
95+
# allowUpdates: true
96+
# artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
97+
# tag: nightly
98+
99+
# build-macos-aarch64:
100+
# env:
101+
# ARCH: aarch64
102+
# OS: macos
103+
104+
# # macos-14 runs on arm CPU. see
105+
# # https://github.com/actions/runner-images?tab=readme-ov-file
106+
# runs-on: macos-14
107+
# timeout-minutes: 15
108+
109+
# steps:
110+
# - uses: actions/checkout@v4
111+
# with:
112+
# fetch-depth: 0
113+
# # fetch submodules recusively, to get zig-js-runtime submodules also.
114+
# submodules: recursive
115+
116+
# - uses: ./.github/actions/install
117+
# with:
118+
# os: ${{env.OS}}
119+
# arch: ${{env.ARCH}}
120+
121+
# - name: zig build
122+
# run: zig build --release=safe -Doptimize=ReleaseSafe -Dgit_commit=$(git rev-parse --short ${{ github.sha }})
123+
124+
# - name: Rename binary
125+
# run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
126+
127+
# - name: upload on s3
128+
# run: |
129+
# export DIR=`git show --no-patch --no-notes --pretty='%cs_%h'`
130+
# aws s3 cp --storage-class=GLACIER_IR lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/${DIR}/lightpanda-${{ env.ARCH }}-${{ env.OS }}
131+
132+
# - name: Upload the build
133+
# uses: ncipollo/release-action@v1
134+
# with:
135+
# allowUpdates: true
136+
# artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
137+
# tag: nightly
138+
139+
# build-macos-x86_64:
140+
# env:
141+
# ARCH: x86_64
142+
# OS: macos
143+
144+
# # macos-13 runs on x86 CPU. see
145+
# # https://github.com/actions/runner-images?tab=readme-ov-file
146+
# # If we want to build for macos-14 or superior, we need to switch to
147+
# # macos-14-large.
148+
# # No need for now, but maybe we will need it in the short term.
149+
# runs-on: macos-13
150+
# timeout-minutes: 15
151+
152+
# steps:
153+
# - uses: actions/checkout@v4
154+
# with:
155+
# fetch-depth: 0
156+
# # fetch submodules recusively, to get zig-js-runtime submodules also.
157+
# submodules: recursive
158+
159+
# - uses: ./.github/actions/install
160+
# with:
161+
# os: ${{env.OS}}
162+
# arch: ${{env.ARCH}}
163+
164+
# - name: zig build
165+
# run: zig build --release=safe -Doptimize=ReleaseSafe -Dgit_commit=$(git rev-parse --short ${{ github.sha }})
166+
167+
# - name: Rename binary
168+
# run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }}
169+
170+
# - name: upload on s3
171+
# run: |
172+
# export DIR=`git show --no-patch --no-notes --pretty='%cs_%h'`
173+
# aws s3 cp --storage-class=GLACIER_IR lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/${DIR}/lightpanda-${{ env.ARCH }}-${{ env.OS }}
174+
175+
# - name: Upload the build
176+
# uses: ncipollo/release-action@v1
177+
# with:
178+
# allowUpdates: true
179+
# artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
180+
# tag: nightly
178181

179182
build-aarch64-ios:
180183
env:

0 commit comments

Comments
 (0)