We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5b804f7 + 61a18b4 commit 6ec517aCopy full SHA for 6ec517a
.github/workflows/release.yml
@@ -77,15 +77,7 @@ jobs:
77
78
- id: build
79
run: |
80
- rustc --print cfg | grep = > rustc.vars
81
- source rustc.vars
82
-
83
- if [ -z "${target_env}" ]; then
84
- export HOST="${target_arch}-${target_vendor}-${target_os}"
85
- else
86
- export HOST="${target_arch}-${target_vendor}-${target_os}-${target_env}"
87
- fi
88
+ export HOST=$(rustc -vV | grep host: | awk '{print $2}')
89
if [ "$HOST" = "$TARGET" ]; then
90
cargo build --release --target ${TARGET}
91
else
@@ -100,9 +92,8 @@ jobs:
100
92
tar cvzf $ASSET_NAME xsnippet-api
101
93
fi
102
94
gh release upload $RELEASE_TAG $ASSET_NAME
103
- popd
104
105
95
echo "asset_path=$PWD/$ASSET_NAME" >> $GITHUB_OUTPUT
96
+ popd
106
97
env:
107
98
ASSET_NAME: ${{ matrix.name }}
108
99
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments