Skip to content

Commit ab37981

Browse files
committed
ci: add arm64 build
1 parent 1afd9fb commit ab37981

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/build-release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,40 @@ jobs:
8383
with:
8484
allowUpdates: true
8585
artifacts: libc_v8_${{steps.read-version.outputs.version}}_${{ env.OS }}_${{ env.ARCH }}.a
86+
87+
build-arm64-linux:
88+
env:
89+
OS: linux
90+
ARCH: aarch64
91+
92+
runs-on: ubuntu-24.04-arm
93+
steps:
94+
- uses: mlugg/setup-zig@v1
95+
with:
96+
version: ${{ env.ZIG_VERSION }}
97+
98+
- uses: actions/checkout@v4
99+
with:
100+
submodules: recursive
101+
fetch-depth: 0
102+
103+
- name: Read version
104+
id: read-version
105+
run: |
106+
echo "version=`cat V8_REVISION`" >> "$GITHUB_OUTPUT"
107+
108+
- run: |
109+
sudo apt-get update
110+
sudo apt-get install -yq libglib2.0-dev
111+
112+
- run: zig build get-tools
113+
- run: zig build get-v8
114+
- run: zig build -Doptimize=ReleaseSafe
115+
- 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
116+
117+
- name: Upload the build
118+
uses: ncipollo/release-action@v1
119+
with:
120+
allowUpdates: true
121+
artifacts: libc_v8_${{steps.read-version.outputs.version}}_${{ env.OS }}_${{ env.ARCH }}.a
122+

0 commit comments

Comments
 (0)