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
3
3
on :
4
4
push :
5
5
tags : ["v*"]
6
+ workflow_dispatch :
7
+ inputs :
8
+ tag :
9
+ description : ' Tag to release'
10
+ required : false
11
+ default : ' v0.0.0'
6
12
7
13
permissions :
8
14
contents : write
33
39
target : x86_64-pc-windows-msvc
34
40
asset_name : windows
35
41
arch : x86_64
42
+
36
43
env :
44
+ # Construct the binary name with ".exe" if on Windows
37
45
BINARY_NAME : keywatch-${{ matrix.platform.asset_name }}-${{ matrix.platform.arch }}${{ matrix.platform.os == 'windows-latest' && '.exe' || '' }}
38
46
39
47
steps :
@@ -59,19 +67,18 @@ jobs:
59
67
with :
60
68
targets : ${{ matrix.platform.target }}
61
69
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.
63
72
- name : Install cross-compilation tools
64
73
if : matrix.platform.target == 'aarch64-apple-darwin'
65
74
run : |
66
- brew install FiloSottile/musl-cross/musl-cross
75
+ brew install FiloSottile/musl-cross/musl-cross || true
67
76
rustup target add aarch64-apple-darwin
68
77
69
78
# Build the specific package
70
79
- name : Build Binary
71
80
run : |
72
81
cargo build --release --target ${{ matrix.platform.target }}
73
- env :
74
- CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER : aarch64-apple-darwin-gcc
75
82
76
83
- name : Prepare Asset
77
84
shell : bash
You can’t perform that action at this time.
0 commit comments