From 8e71fe5f235c73f2ce81015cfeed2b381fd0ec66 Mon Sep 17 00:00:00 2001 From: Adrien Mannocci Date: Tue, 27 Oct 2026 16:53:19 +0100 Subject: [PATCH] ci: use techcode-io/github-actions proxies Install Rust with setup-rust instead of dtolnay/rust-toolchain@stable, using its pinned toolchain, and key the cargo cache on its cachekey output. Replace the local setup-github-bot action with the shared one. --- .github/workflows/env-install/action.yml | 9 +++++---- .github/workflows/pre-release.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/setup-github-bot/action.yml | 12 ------------ 4 files changed, 7 insertions(+), 18 deletions(-) delete mode 100644 .github/workflows/setup-github-bot/action.yml diff --git a/.github/workflows/env-install/action.yml b/.github/workflows/env-install/action.yml index 72cf115..f496268 100644 --- a/.github/workflows/env-install/action.yml +++ b/.github/workflows/env-install/action.yml @@ -13,8 +13,9 @@ inputs: runs: using: "composite" steps: - - name: Install Rust stable - uses: dtolnay/rust-toolchain@stable + - name: Setup Rust + id: rust + uses: techcode-io/github-actions/setup-rust@setup-rust/v1 with: targets: ${{ inputs.targets }} components: ${{ inputs.components }} @@ -27,6 +28,6 @@ runs: ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ - key: ${{ runner.os }}-${{ runner.arch }}-cargo-${{ inputs.targets }}-${{ hashFiles('**/Cargo.toml', '**/Cargo.lock') }} + key: ${{ runner.os }}-${{ runner.arch }}-cargo-${{ steps.rust.outputs.cachekey }}-${{ inputs.targets }}-${{ hashFiles('**/Cargo.toml', '**/Cargo.lock') }} restore-keys: | - ${{ runner.os }}-${{ runner.arch }}-cargo-${{ inputs.targets }}- + ${{ runner.os }}-${{ runner.arch }}-cargo-${{ steps.rust.outputs.cachekey }}-${{ inputs.targets }}- diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 0ac4430..7ee47d8 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -27,7 +27,7 @@ jobs: fetch-depth: 0 - name: Setup github actions bot - uses: ./.github/workflows/setup-github-bot + uses: techcode-io/github-actions/setup-github-bot@setup-github-bot/v1 - name: Install environment uses: ./.github/workflows/env-install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 08906cd..d4eb50a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,7 +61,7 @@ jobs: fetch-depth: 0 - name: Setup github actions bot - uses: ./.github/workflows/setup-github-bot + uses: techcode-io/github-actions/setup-github-bot@setup-github-bot/v1 - name: Install environment uses: ./.github/workflows/env-install diff --git a/.github/workflows/setup-github-bot/action.yml b/.github/workflows/setup-github-bot/action.yml deleted file mode 100644 index c8b50ac..0000000 --- a/.github/workflows/setup-github-bot/action.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: Setup github actions bot -description: Setup github actions bot to commit and create PRs - -runs: - using: "composite" - steps: - - name: Setup git - run: | - git config --global user.name "github-actions[bot]" - git config --global user.email "github-actions[bot]@users.noreply.github.com" - shell: bash