chore: add github action build arm64 platform (#479)

Co-authored-by: hardy <luohf@infinilabs.com>
This commit is contained in:
Hardy
2025-05-07 10:50:39 +08:00
committed by GitHub
parent e96e6b4a89
commit 326e161505

View File

@@ -50,6 +50,8 @@ jobs:
- platform: "ubuntu-22.04" - platform: "ubuntu-22.04"
target: "x86_64-unknown-linux-gnu" target: "x86_64-unknown-linux-gnu"
- platform: "ubuntu-22.04-arm"
target: "aarch64-unknown-linux-gnu"
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
steps: steps:
@@ -67,10 +69,10 @@ jobs:
run: rustup target add ${{ matrix.target }} run: rustup target add ${{ matrix.target }}
- name: Install dependencies (ubuntu only) - name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04' if: startsWith(matrix.platform, 'ubuntu-22.04')
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf xdg-utils
- name: Install Rust stable - name: Install Rust stable
run: rustup toolchain install stable run: rustup toolchain install stable