Skip to content

Commit 2148c4b

Browse files
Merge pull request #38 from lightpanda-io/arm64
ci: add arm64 build
2 parents 1afd9fb + 3393a1d commit 2148c4b

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

.github/workflows/build-release.yml

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
OS: linux
2020
ARCH: x86_64
2121

22-
runs-on: ubuntu-22.04
22+
runs-on: ubuntu-24.04
2323
steps:
2424
- uses: mlugg/setup-zig@v1
2525
with:
@@ -35,7 +35,9 @@ jobs:
3535
run: |
3636
echo "version=`cat V8_REVISION`" >> "$GITHUB_OUTPUT"
3737
38-
- run: sudo apt-get install -yq libglib2.0-dev
38+
- run: |
39+
sudo apt-get update
40+
sudo apt-get install -yq libglib2.0-dev
3941
4042
- run: zig build get-tools
4143
- run: zig build get-v8
@@ -83,3 +85,39 @@ jobs:
8385
with:
8486
allowUpdates: true
8587
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

0 commit comments

Comments
 (0)