@@ -17,11 +17,13 @@ jobs:
17
17
- build : linux
18
18
os : ubuntu-latest
19
19
target : x86_64-unknown-linux-musl
20
- cargo_build : --target x86_64-unknown-linux-musl
20
+ cargo_arg : --release
21
21
- build : macos
22
22
os : macos-latest
23
+ cargo_arg : --release
23
24
- build : windows
24
25
os : windows-latest
26
+ cargo_arg : --release
25
27
extension : .exe
26
28
27
29
runs-on : ${{ matrix.os }}
42
44
with :
43
45
command : build
44
46
args : --release --all-features --package git2mail --verbose ${{ matrix.cargo_build }}
45
- - name : Strip resulting binary
46
- if : matrix.build == 'linux'
47
- run : strip ./target/${{ matrix.target }}/release/git2mail${{ matrix.extension }}
48
47
- name : Upload resulting 'git2mail'
49
48
uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
50
49
with :
@@ -102,7 +101,7 @@ jobs:
102
101
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
103
102
with :
104
103
upload_url : ${{ steps.create_release.outputs.upload_url }}
105
- asset_path : ./git2mail-linux
104
+ asset_path : ./git2mail-linux/git2mail
106
105
asset_content_type : application/octet-stream
107
106
asset_name : git2mail-linux-static-${{ steps.get_version.outputs.VERSION }}
108
107
@@ -112,7 +111,7 @@ jobs:
112
111
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
113
112
with :
114
113
upload_url : ${{ steps.create_release.outputs.upload_url }}
115
- asset_path : ./git2mail-windows
114
+ asset_path : ./git2mail-windows/git2mail.exe
116
115
asset_content_type : application/octet-stream
117
116
asset_name : git2mail-windows-${{ steps.get_version.outputs.VERSION }}
118
117
@@ -122,6 +121,6 @@ jobs:
122
121
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
123
122
with :
124
123
upload_url : ${{ steps.create_release.outputs.upload_url }}
125
- asset_path : ./git2mail-macos
124
+ asset_path : ./git2mail-macos/git2mail
126
125
asset_content_type : application/octet-stream
127
126
asset_name : git2mail-macos-${{ steps.get_version.outputs.VERSION }}
0 commit comments