File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -134,10 +134,18 @@ jobs:
134134
135135 - name : Install cross
136136 if : matrix.job.use-cross
137- uses : taiki-e/install-action@6f9c7cc51aa54b13cbcbd12f8bbf69d8ba405b4b # v2.62.47
138- with :
139- tool : cross
140-
137+ env :
138+ cross_version : " v0.2.5"
139+ package_name : " cross-x86_64-unknown-linux-gnu.tar.gz"
140+ GH_TOKEN : " ${{ github.token }}"
141+ run : |
142+ dir="$HOME/.local/bin/"
143+ mkdir -p "$dir"
144+ gh release download --repo cross-rs/cross \
145+ --pattern "${package_name}" -O - "${cross_version}" \
146+ | tar -C "$dir" -xz
147+ echo "$dir" >> $GITHUB_PATH
148+ echo "Installed cross $cross_version" >> $GITHUB_STEP_SUMMARY
141149 - name : Show version information (Rust, cargo, GCC)
142150 shell : bash
143151 run : |
You can’t perform that action at this time.
0 commit comments