File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ name: Release
33on :
44 push :
55 tags : ["v*"]
6+ workflow_dispatch :
7+ inputs :
8+ tag :
9+ description : ' Tag to release'
10+ required : false
11+ default : ' v0.0.0'
612
713permissions :
814 contents : write
3339 target : x86_64-pc-windows-msvc
3440 asset_name : windows
3541 arch : x86_64
42+
3643 env :
44+ # Construct the binary name with ".exe" if on Windows
3745 BINARY_NAME : keywatch-${{ matrix.platform.asset_name }}-${{ matrix.platform.arch }}${{ matrix.platform.os == 'windows-latest' && '.exe' || '' }}
3846
3947 steps :
@@ -59,19 +67,18 @@ jobs:
5967 with :
6068 targets : ${{ matrix.platform.target }}
6169
62- # Add cross-compilation support
70+ # When targeting aarch64-apple-darwin, ensure the target is added.
71+ # Note: macOS runners already have clang so we do not need a custom linker.
6372 - name : Install cross-compilation tools
6473 if : matrix.platform.target == 'aarch64-apple-darwin'
6574 run : |
66- brew install FiloSottile/musl-cross/musl-cross
75+ brew install FiloSottile/musl-cross/musl-cross || true
6776 rustup target add aarch64-apple-darwin
6877
6978 # Build the specific package
7079 - name : Build Binary
7180 run : |
7281 cargo build --release --target ${{ matrix.platform.target }}
73- env :
74- CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER : aarch64-apple-darwin-gcc
7582
7683 - name : Prepare Asset
7784 shell : bash
You can’t perform that action at this time.
0 commit comments