From 97042cdc46aace0c871cf0c12f83cab2b0e49a56 Mon Sep 17 00:00:00 2001 From: Lionel Henry Date: Thu, 29 Aug 2024 10:21:43 +0200 Subject: [PATCH] Try arm64 build --- .github/workflows/release-linux.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-linux.yml b/.github/workflows/release-linux.yml index 0ac676ccc..189af8058 100644 --- a/.github/workflows/release-linux.yml +++ b/.github/workflows/release-linux.yml @@ -20,11 +20,12 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} DEBUG_FLAG: ${{ matrix.flavor == 'debug' && '-debug' || '' }} TARGET_FLAG: ${{ matrix.flavor == 'release' && '--release' || '' }} + ARCH_FLAG: ${{ matrix.arch == 'x64' && 'x86_64' || 'aarch64' }} GLIBC_MAX_VERSION: '2.26' # Sufficiently old for all our target platforms strategy: matrix: - arch: [x64] + arch: [arm64] flavor: [release] steps: @@ -48,16 +49,16 @@ jobs: # Use the zig linker. This allows linking to a specific version of glibc. # We use a sufficiently old version that is available on all platforms we target. # See https://github.com/ziglang/glibc-abi-tool - cargo zigbuild --target x86_64-unknown-linux-gnu.$GLIBC_MAX_VERSION $TARGET_FLAG + cargo zigbuild --target ${ARCH_FLAG}-unknown-linux-gnu.$GLIBC_MAX_VERSION $TARGET_FLAG # Compress kernel to a zip file - name: Create archive run: | # Enter the build directory - pushd target/x86_64-unknown-linux-gnu/${{ matrix.flavor }} + pushd target/${ARCH_FLAG}-unknown-linux-gnu/${{ matrix.flavor }} # Compress the kernel to an archive - ARCHIVE="$GITHUB_WORKSPACE/ark-${{ inputs.version }}-${{ matrix.flavor }}-linux-x64.zip" + ARCHIVE="$GITHUB_WORKSPACE/ark-${{ inputs.version }}-${{ matrix.flavor }}-linux-${{ matrix.arch }}.zip" [ -e LICENSE ] || cp "$GITHUB_WORKSPACE/LICENSE" LICENSE [ -e NOTICE ] || cp "$GITHUB_WORKSPACE/crates/ark/NOTICE" NOTICE zip -Xry $ARCHIVE ark LICENSE NOTICE @@ -67,5 +68,5 @@ jobs: - name: Upload archive uses: actions/upload-artifact@v3 with: - name: ark-${{ matrix.flavor }}-linux-x64-archive - path: ark-${{ inputs.version }}-${{ matrix.flavor }}-linux-x64.zip + name: ark-${{ matrix.flavor }}-linux-${{ matrix.arch }}-archive + path: ark-${{ inputs.version }}-${{ matrix.flavor }}-linux-${{ matrix.arch }}.zip