From 68fa2dbaedd964c431a84b88e955a28662ac6453 Mon Sep 17 00:00:00 2001 From: Thayne McCombs Date: Mon, 10 Nov 2025 00:36:12 -0700 Subject: [PATCH] feat(build): Install cross directly Removes a dependency on an action repo. This works similarly to how ripgrep currently installs cross. --- .github/workflows/CICD.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index e8a7bd72..661c3c5d 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -134,10 +134,18 @@ jobs: - name: Install cross if: matrix.job.use-cross - uses: taiki-e/install-action@6f9c7cc51aa54b13cbcbd12f8bbf69d8ba405b4b # v2.62.47 - with: - tool: cross - + env: + cross_version: "v0.2.5" + package_name: "cross-x86_64-unknown-linux-gnu.tar.gz" + GH_TOKEN: "${{ github.token }}" + run: | + dir="$HOME/.local/bin/" + mkdir -p "$dir" + gh release download --repo cross-rs/cross \ + --pattern "${package_name}" -O - "${cross_version}" \ + | tar -C "$dir" -xz + echo "$dir" >> $GITHUB_PATH + echo "Installed cross $cross_version" >> $GITHUB_STEP_SUMMARY - name: Show version information (Rust, cargo, GCC) shell: bash run: |