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:
7474 args : --release
7575
7676 - run : |
77+ rustc --print cfg | grep = > rustc.vars
78+ source rustc.vars
79+
80+ pushd target/release
7781 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
8085 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
8389 fi
90+ popd
8491
8592 - uses : actions/upload-release-asset@v1
8693 env :
You can’t perform that action at this time.
0 commit comments