Skip to content

Commit

Permalink
Try arm64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel- committed Aug 29, 2024
1 parent 83e01a3 commit 97042cd
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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

0 comments on commit 97042cd

Please sign in to comment.