@@ -17,11 +17,13 @@ jobs:
1717 - build : linux
1818 os : ubuntu-latest
1919 target : x86_64-unknown-linux-musl
20- cargo_build : --target x86_64-unknown-linux-musl
20+ cargo_arg : --release
2121 - build : macos
2222 os : macos-latest
23+ cargo_arg : --release
2324 - build : windows
2425 os : windows-latest
26+ cargo_arg : --release
2527 extension : .exe
2628
2729 runs-on : ${{ matrix.os }}
4244 with :
4345 command : build
4446 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 }}
4847 - name : Upload resulting 'git2mail'
4948 uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
5049 with :
@@ -102,7 +101,7 @@ jobs:
102101 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
103102 with :
104103 upload_url : ${{ steps.create_release.outputs.upload_url }}
105- asset_path : ./git2mail-linux
104+ asset_path : ./git2mail-linux/git2mail
106105 asset_content_type : application/octet-stream
107106 asset_name : git2mail-linux-static-${{ steps.get_version.outputs.VERSION }}
108107
@@ -112,7 +111,7 @@ jobs:
112111 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
113112 with :
114113 upload_url : ${{ steps.create_release.outputs.upload_url }}
115- asset_path : ./git2mail-windows
114+ asset_path : ./git2mail-windows/git2mail.exe
116115 asset_content_type : application/octet-stream
117116 asset_name : git2mail-windows-${{ steps.get_version.outputs.VERSION }}
118117
@@ -122,6 +121,6 @@ jobs:
122121 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
123122 with :
124123 upload_url : ${{ steps.create_release.outputs.upload_url }}
125- asset_path : ./git2mail-macos
124+ asset_path : ./git2mail-macos/git2mail
126125 asset_content_type : application/octet-stream
127126 asset_name : git2mail-macos-${{ steps.get_version.outputs.VERSION }}
0 commit comments