From a20b2ad3c636989c9049694a1c5a2cd97a41eeec Mon Sep 17 00:00:00 2001 From: dailz Date: Tue, 14 Jul 2026 13:10:21 +0800 Subject: [PATCH] ci: switch to gitea.com action mirrors + rustup inline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The self-hosted act_runner cannot reach github.com (network timeout on actions/checkout clone). Replace: - actions/checkout@v4 -> https://gitea.com/actions/checkout@v4 (3 sites) - actions/cache@v4 -> https://gitea.com/actions/cache@v4 - dtolnay/rust-toolchain@stable -> rustup toolchain install (inline run) gitea.com maintains official mirrors of the actions/* org. dtolnay's rust-toolchain is third-party (no gitea.com mirror), so replaced with a direct rustup invocation — the act_runner ubuntu image has rustup pre-installed. This unblocks CI which has been red since the original PR #26 was opened 6 weeks ago. No code changes. --- .github/workflows/ci.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5255d07..e8bff81 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,12 +35,10 @@ jobs: name: Build + Clippy + Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: https://gitea.com/actions/checkout@v4 - name: Install Rust toolchain (stable) - uses: dtolnay/rust-toolchain@stable - with: - components: clippy + run: rustup toolchain install stable --profile minimal --component clippy && rustup default stable - name: Install system dependencies run: | @@ -81,7 +79,7 @@ jobs: echo "LIBCLANG_PATH=$LIBDIR" >> "$GITHUB_ENV" - name: Cache cargo registry + build artifacts - uses: actions/cache@v4 + uses: https://gitea.com/actions/cache@v4 with: path: | ~/.cargo/registry @@ -106,10 +104,10 @@ jobs: # Keep separate from build-test so a vulnerability advisory fails the # check independently of compile state. steps: - - uses: actions/checkout@v4 + - uses: https://gitea.com/actions/checkout@v4 - name: Install Rust toolchain (stable) - uses: dtolnay/rust-toolchain@stable + run: rustup toolchain install stable --profile minimal && rustup default stable - name: Install cargo-audit run: cargo install cargo-audit --locked