From c2c26ae94f03d0754a31e173c145b555ae0d2600 Mon Sep 17 00:00:00 2001 From: ShotaKitazawa Date: Tue, 31 Dec 2024 06:11:01 +0900 Subject: [PATCH] Explicitly specify cpu architecture in building x86_64-apple-darwin --- .github/workflows/release.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c4de4740..d5b194b4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,14 +75,12 @@ jobs: - uses: actions-rs/toolchain@v1 with: toolchain: stable - - uses: actions-rs/cargo@v1 - with: - command: build - args: --release + target: x86_64-apple-darwin + - run: SDKROOT=$(xcrun --sdk macosx --show-sdk-path) MACOSX_DEPLOYMENT_TARGET=11.0 cargo build --release --target x86_64-apple-darwin - uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: target/release/kubie + file: target/x86_64-apple-darwin/release/kubie asset_name: kubie-darwin-amd64 tag: ${{ github.ref }}