From 34810fd3d60ad5569b6f31c5a2ccfda2905ed594 Mon Sep 17 00:00:00 2001 From: Leo Li Date: Tue, 25 Jul 2023 22:03:53 +0800 Subject: [PATCH] complete apple ci [skip ci] --- .github/workflows/release.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ee2699..18eec69 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -98,10 +98,7 @@ jobs: - name: Build for mac run: cargo build --release --target x86_64-apple-darwin - - name: List directory - run: ls target - - - name: Rename artifact + - name: Rename artifact (x86_64) run: > cp target/x86_64-apple-darwin/release/solver-multi @@ -110,6 +107,12 @@ jobs: - name: Cross-compile Apple Silicon run: cargo build --release --target aarch64-apple-darwin + - name: Rename artifact (aarch64) + run: > + cp + target/aarch64-apple-darwin/release/solver-multi + solver-multi_aarch64-apple-darwin + - name: List directory run: ls target @@ -117,5 +120,7 @@ jobs: uses: softprops/action-gh-release@v1 with: draft: true - files: solver-multi_x86_64-apple-darwin + files: | + solver-multi_x86_64-apple-darwin + solver-multi_aarch64-apple-darwin if: startsWith( github.ref, 'refs/tags/v' ) || contains(github.event.head_commit.message, 'test release') \ No newline at end of file