From 17c01a040a35774e224c6d3db5d1a72c952b49d1 Mon Sep 17 00:00:00 2001 From: dailz Date: Tue, 14 Jul 2026 20:08:55 +0800 Subject: [PATCH] ci: set proxy env at job level (container.env not supported by act_runner) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit act_runner does not support container.env in config.yaml — job containers get NO proxy env vars. Set HTTP_PROXY/HTTPS_PROXY/NO_PROXY directly in the workflow's job-level env block. NO_PROXY includes gitea.com (actions checkout goes direct, faster) and gitea.dailz.cn (self-hosted Gitea, internal). --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2f5a86..b195a4d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,10 @@ jobs: build-test: name: Build + Clippy + Test runs-on: ubuntu-latest + env: + HTTP_PROXY: http://172.17.0.1:7897 + HTTPS_PROXY: http://172.17.0.1:7897 + NO_PROXY: localhost,127.0.0.1,server,db,gitea.dailz.cn,gitea.com steps: - uses: https://gitea.com/actions/checkout@v4 @@ -76,6 +80,10 @@ jobs: audit: name: Security audit (RUSTSEC) runs-on: ubuntu-latest + env: + HTTP_PROXY: http://172.17.0.1:7897 + HTTPS_PROXY: http://172.17.0.1:7897 + NO_PROXY: localhost,127.0.0.1,server,db,gitea.dailz.cn,gitea.com steps: - uses: https://gitea.com/actions/checkout@v4