Skip to content

Commit dd9cf2e

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

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build-release.yml

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

0 commit comments

Comments
 (0)