From b1358d47116d9d22eedab0b3b03d49f194a5af9d Mon Sep 17 00:00:00 2001 From: houseme Date: Sat, 10 May 2025 00:24:14 +0800 Subject: [PATCH] # Expand ARM64 Linux Support in Build Pipeline Added support for both ARM64 Linux variants to the CI/CD build pipeline: 1. Enabled the previously commented `aarch64-unknown-linux-gnu` target build 2. Re-enabled the `aarch64-unknown-linux-musl` target build 3. Updated the build matrix to ensure proper runner selection: - Ubuntu runners build all Linux targets - macOS runners build only Apple Silicon targets 4. Maintained compatibility with the existing build scripts and packaging process This expansion gives users more options for deploying on ARM64 Linux platforms, supporting both glibc and musl libc environments for maximum compatibility and performance. --- .github/workflows/build.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6e75fe72f..b05bf7915 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,16 +17,22 @@ jobs: matrix: os: [ ubuntu-latest, macos-latest ] variant: - - { profile: release, target: x86_64-unknown-linux-musl, glibc: "default" } + #- { profile: release, target: x86_64-unknown-linux-musl, glibc: "default" } - { profile: release, target: x86_64-unknown-linux-gnu, glibc: "default" } - { profile: release, target: aarch64-apple-darwin, glibc: "default" } + - { profile: release, target: aarch64-unknown-linux-gnu, glibc: "default" } + #- { profile: release, target: aarch64-unknown-linux-musl, glibc: "default" } exclude: + - os: ubuntu-latest + variant: { profile: release, target: x86_64-apple-darwin, glibc: "default" } - os: macos-latest variant: { profile: release, target: x86_64-unknown-linux-gnu, glibc: "default" } - - os: ubuntu-latest - variant: { profile: release, target: aarch64-apple-darwin, glibc: "default" } - os: macos-latest variant: { profile: release, target: x86_64-unknown-linux-musl, glibc: "default" } + - os: macos-latest + variant: { profile: release, target: aarch64-unknown-linux-musl, glibc: "default" } + - os: macos-latest + variant: { profile: release, target: aarch64-unknown-linux-gnu, glibc: "default" } steps: - uses: actions/checkout@v4