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 @@ -74,13 +74,20 @@ jobs:
74
74
args : --release
75
75
76
76
- run : |
77
+ rustc --print cfg | grep = > rustc.vars
78
+ source rustc.vars
79
+
80
+ pushd target/release
77
81
if [ "$RUNNER_OS" == "Windows" ]; then
78
- echo "ASSET_NAME=xsnippet-api-${{ matrix.os }}.exe" >> $GITHUB_ENV
79
- echo "ASSET_PATH=./target/release/xsnippet-api.exe" >> $GITHUB_ENV
82
+ echo "ASSET_NAME=xsnippet-api-${target_arch}-${target_os}.exe.7z" >> $GITHUB_ENV
83
+ echo "ASSET_PATH=./target/release/xsnippet-api.exe.7z" >> $GITHUB_ENV
84
+ 7z a xsnippet-api.exe.7z xsnippet-api.exe
80
85
else
81
- echo "ASSET_NAME=xsnippet-api-${{ matrix.os }}" >> $GITHUB_ENV
82
- echo "ASSET_PATH=./target/release/xsnippet-api" >> $GITHUB_ENV
86
+ echo "ASSET_NAME=xsnippet-api-${target_arch}-${target_os}.gz" >> $GITHUB_ENV
87
+ echo "ASSET_PATH=./target/release/xsnippet-api.gz" >> $GITHUB_ENV
88
+ tar cvzf xsnippet-api.gz xsnippet-api
83
89
fi
90
+ popd
84
91
85
92
- uses : actions/upload-release-asset@v1
86
93
env :
You can’t perform that action at this time.
0 commit comments