Skip to content

Commit

Permalink
Build AOT releases with native arm64 runners (#2262)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme authored Jun 12, 2024
1 parent a1b372e commit cf6f9d0
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 13 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,32 @@ jobs:
build:
name: Build

runs-on: ubuntu-latest
runs-on: ${{ matrix.runner }}

strategy:
fail-fast: false
matrix:
include:
- arch: x64
lib: lib64
runner: ubuntu-latest
platform: linux/amd64
- arch: ia32
lib: lib
runner: ubuntu-latest
platform: linux/amd64
- arch: arm64
lib: lib64
runner: linux-arm64
platform: linux/arm64
- arch: arm
lib: lib
runner: linux-arm64
platform: linux/arm64
# There is no docker image for riscv64 dart-sdk, build kernel snapshot instead.
- arch: riscv64
lib: lib64
runner: ubuntu-latest
platform: linux/amd64 # linux/riscv64

steps:
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/build-linux-musl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,26 @@ jobs:
build:
name: Build

runs-on: ubuntu-latest
runs-on: ${{ matrix.runner }}

strategy:
fail-fast: false
matrix:
include:
- arch: x64
runner: ubuntu-latest
platform: linux/amd64
- arch: ia32
runner: ubuntu-latest
platform: linux/386
- arch: arm64
runner: linux-arm64
platform: linux/arm64
# There is a bug in qemu's mremap causing pthread_getattr_np in musl to stuck in a loop on arm.
# Unless qemu fixes the bug or we get a real linux-arm runner, we cannot build aot-snapshot
# for arm on CI. So, we create a kernel snapshot for arm build in amd64 container instead.
# https://gitlab.com/qemu-project/qemu/-/issues/1729
- arch: arm
platform: linux/amd64 # linux/arm/v7
runner: linux-arm64
platform: linux/arm/v7
- arch: riscv64
runner: ubuntu-latest
platform: linux/riscv64

steps:
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,26 @@ jobs:
build:
name: Build

runs-on: ubuntu-latest
runs-on: ${{ matrix.runner }}

strategy:
fail-fast: false
matrix:
include:
- arch: x64
runner: ubuntu-latest
platform: linux/amd64
- arch: ia32
platform: linux/amd64
- arch: arm
platform: linux/arm/v7
runner: ubuntu-latest
platform: linux/386
- arch: arm64
runner: linux-arm64
platform: linux/arm64
- arch: arm
runner: linux-arm64
platform: linux/arm/v7
- arch: riscv64
runner: ubuntu-latest
platform: linux/riscv64

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- arch: x64
runner: macos-13
- arch: arm64
runner: macos-14
runner: macos-latest

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- arch: ia32
runner: windows-latest
- arch: arm64
runner: windows-latest
runner: windows-arm64

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit cf6f9d0

Please sign in to comment.