Skip to content

Commit 9077ae0

Browse files
Merge pull request #78 from lightpanda-io/arm64-22-04
ci: use ubuntu 22.04 to build arm64/linux
2 parents 445baa2 + 2caa471 commit 9077ae0

File tree

1 file changed

+3
-96
lines changed

1 file changed

+3
-96
lines changed

.github/workflows/build-release.yml

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

@@ -15,72 +17,13 @@ env:
1517
V8_REVISION: 13.6.233.8
1618

1719
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
7720

7821
build-arm64-linux:
7922
env:
8023
OS: linux
8124
ARCH: aarch64
8225

83-
runs-on: ubuntu-24.04-arm
26+
runs-on: ubuntu-22.04-arm
8427
steps:
8528
- uses: mlugg/setup-zig@v2
8629
with:
@@ -103,39 +46,3 @@ jobs:
10346
- run: zig build get-v8
10447
- run: zig build -Doptimize=ReleaseSafe build-v8
10548
- 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)