Skip to content

Commit ed31297

Browse files
committed
feat: use native github-hosted arm64 runners for linux
1 parent c3b645a commit ed31297

1 file changed

Lines changed: 5 additions & 16 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
os: [ubuntu-latest, windows-latest, macos-latest]
12+
# Use native ARM64 runners for Linux and macOS
13+
os: [ubuntu-latest, windows-latest, macos-latest, ubuntu-24.04-arm]
1314

1415
steps:
1516
- uses: actions/checkout@v4
@@ -26,26 +27,14 @@ jobs:
2627
python-version: '3.x'
2728

2829
- name: Install Dependencies (Linux)
29-
if: runner.os == 'Linux'
30+
if: contains(matrix.os, 'ubuntu')
3031
run: sudo apt-get update && sudo apt-get install -y libgles2-mesa-dev
3132

3233
- name: Build and Package
3334
run: python3 scripts/build.py
3435

35-
# For Linux ARM64, we use QEMU to run the build in an emulated environment
36-
- name: Build Linux ARM64
37-
if: runner.os == 'Linux'
38-
uses: uraimo/run-on-arch-action@v2
39-
with:
40-
arch: aarch64
41-
distro: ubuntu22.04
42-
install: |
43-
apt-get update && apt-get install -y python3 cmake build-essential openjdk-21-jdk libgles2-mesa-dev
44-
run: |
45-
python3 scripts/build.py
46-
4736
- name: Upload Artifacts
4837
uses: actions/upload-artifact@v4
4938
with:
50-
name: live2d-jars-${{ runner.os }}
51-
path: out/*.jar
39+
name: live2d-jars-${{ matrix.os }}
40+
path: out/*.jar

0 commit comments

Comments
 (0)