Skip to content

Apache DataFusion SQL Query Engine

minor(CI): Use `install-action` to speed up ci (#23661)

Yongting Youd5703bda1625
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index d69f6a69c1..bde6c7d11f 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -697,7 +697,9 @@ jobs:
with:
rust-version: stable
- name: Install taplo
- run: cargo +stable install taplo-cli --version ^0.9 --locked
+ uses: taiki-e/install-action@43aecc8d72668fbcfe75c31400bc4f890f1c5853 # v2.83.2
+ with:
# if you encounter an error, try running 'taplo format' to fix the formatting automatically.
- name: Check Cargo.toml formatting
run: taplo format --check
diff --git a/ci/scripts/check_no_cargo_install_in_workflows.sh b/ci/scripts/check_no_cargo_install_in_workflows.sh
index b1178326e7..aa84b2cf8f 100755
--- a/ci/scripts/check_no_cargo_install_in_workflows.sh
+++ b/ci/scripts/check_no_cargo_install_in_workflows.sh
@@ -22,7 +22,7 @@ set -euo pipefail
SCRIPT_NAME="$(basename "${BASH_SOURCE[0]}")"
WORKFLOWS_DIR=".github/workflows"
-if grep -R -n --include='*.yml' --include='*.yaml' -- 'cargo install' "${WORKFLOWS_DIR}"; then
+if grep -R -E -w -n --include='*.yml' --include='*.yaml' -- 'cargo.*install' "${WORKFLOWS_DIR}"; then
echo "[${SCRIPT_NAME}] Found workflow Rust tool installs that should use taiki-e/install-action instead." >&2
exit 1
fi