From 9da63eb8bb6862c5c0863a062957d873860032a5 Mon Sep 17 00:00:00 2001 From: Eliah Kagan Date: Mon, 29 Jul 2024 23:35:33 -0400 Subject: [PATCH] Add aarch64-apple-darwin target in release workflow This should be broadly useful, but see #1478 for specific context. --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6282c47ada8..9afaa7b4356 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -73,6 +73,7 @@ jobs: - x86_64-unknown-linux-musl - arm-unknown-linux-gnueabihf - x86_64-apple-darwin + - aarch64-apple-darwin - x86_64-pc-windows-msvc - x86_64-pc-windows-gnu - i686-pc-windows-msvc @@ -91,6 +92,9 @@ jobs: - target: x86_64-apple-darwin os: macos-latest rust: stable + - target: aarch64-apple-darwin + os: macos-latest + rust: stable - target: x86_64-pc-windows-msvc os: windows-latest rust: nightly @@ -169,8 +173,8 @@ jobs: run: | "$CARGO" build --verbose --release "$TARGET_FLAGS" --no-default-features --features ${{ matrix.feature }} - - name: Strip release binary (x86-64 Linux, and macOS) - if: matrix.target == 'x86_64-unknown-linux-musl' || matrix.target == 'x86_64-apple-darwin' + - name: Strip release binary (x86-64 Linux, and all macOS) + if: matrix.target == 'x86_64-unknown-linux-musl' || matrix.os == 'macos-latest' run: strip "$TARGET_DIR"/release/{ein,gix} - name: Strip release binary (ARM Linux)