File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 77
77
78
78
- id : build
79
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
-
80
+ export HOST=$(rustc -vV | grep host: | awk '{print $2}')
89
81
if [ "$HOST" = "$TARGET" ]; then
90
82
cargo build --release --target ${TARGET}
91
83
else
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 }}
Original file line number Diff line number Diff line change 93
93
run : |
94
94
python -m alembic.config upgrade head
95
95
96
+ - id : debug
97
+ run : |
98
+ export TARGET=$(rustc -vV | grep host: | awk '{print $2}')
99
+ cargo build --release --target ${TARGET}
100
+
96
101
- uses : actions-rs/cargo@v1
97
102
with :
98
103
command : test
You can’t perform that action at this time.
0 commit comments