ci: use ubuntu 22.04 to build arm64/linux #83
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build-release | |
| on: | |
| push: | |
| tags: | |
| - "**" | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| env: | |
| ZIG_VERSION: 0.14.1 | |
| V8_REVISION: 13.6.233.8 | |
| jobs: | |
| build-arm64-linux: | |
| env: | |
| OS: linux | |
| ARCH: aarch64 | |
| runs-on: ubuntu-22.04-arm | |
| steps: | |
| - uses: mlugg/setup-zig@v2 | |
| with: | |
| version: ${{ env.ZIG_VERSION }} | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 | |
| - run: | | |
| sudo apt-get update | |
| sudo apt-get install -yq libglib2.0-dev lld | |
| wget https://apt.llvm.org/llvm.sh | |
| chmod +x llvm.sh | |
| sudo ./llvm.sh 21 | |
| sudo ln -nsf /usr/lib/llvm-21/lib/clang/21/lib/linux/libclang_rt.builtins-aarch64.a /usr/lib/llvm-21/lib/clang/21/lib/linux/libclang_rt.builtins.a && \ | |
| sudo ln -nsf /usr/lib/llvm-21/lib/clang/21/lib/linux/ /usr/lib/llvm-21/lib/clang/21/lib/aarch64-unknown-linux-gnu | |
| - run: zig build get-v8 | |
| - run: zig build -Doptimize=ReleaseSafe build-v8 | |
| - run: mv v8/out/${{ env.OS }}/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a |