Skip to content

Commit 491baaa

Browse files
authored
Merge pull request #1834 from tmccombs/cross-install
cross install
2 parents 15b57b9 + 68fa2db commit 491baaa

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/CICD.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)