We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4e0c11a + a7b2a42 commit 5b804f7Copy full SHA for 5b804f7
.github/workflows/release.yml
@@ -77,7 +77,15 @@ jobs:
77
78
- id: build
79
run: |
80
- export HOST=$(rustc +nightly -Z unstable-options --print target-spec-json | jq --raw-output '."llvm-target"')
+ 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
89
if [ "$HOST" = "$TARGET" ]; then
90
cargo build --release --target ${TARGET}
91
else
@@ -86,7 +94,7 @@ jobs:
94
fi
95
96
pushd target/${TARGET}/release
- if [ "$TARGET" =~ "windows" ]; then
97
+ if [[ "$TARGET" =~ "windows" ]]; then
98
7z a $ASSET_NAME xsnippet-api.exe
99
92
100
tar cvzf $ASSET_NAME xsnippet-api
0 commit comments