fix(ci): disable forklift RUSTC_WRAPPER in all container jobs

The Parity CI Docker image sets RUSTC_WRAPPER=/usr/local/bin/forklift
for GCS cache optimization. On our VPS runners without GCP credentials,
forklift crashes with nil pointer dereference when trying to create
GCS client. The global env RUSTC_WRAPPER="" doesn't reliably propagate
into Docker containers.

Fix: Add explicit "Disable forklift cache wrapper" step in every
container job that runs cargo commands, using $GITHUB_ENV to ensure
the empty RUSTC_WRAPPER persists across all steps within the job.

Affected workflows: build-publish-images, checks, tests, tests-misc,
build-misc, docs (32 container jobs total).
This commit is contained in:
2026-02-28 01:43:32 +03:00
parent aa45e1a108
commit 66d4eb81d8
6 changed files with 64 additions and 0 deletions
+20
View File
@@ -37,6 +37,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Disable forklift cache wrapper
run: echo "RUSTC_WRAPPER=" >> $GITHUB_ENV
- name: script
run: |
@@ -61,6 +63,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Disable forklift cache wrapper
run: echo "RUSTC_WRAPPER=" >> $GITHUB_ENV
- name: Install wasm32v1-none target
run: rustup target add wasm32v1-none
@@ -88,6 +92,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Disable forklift cache wrapper
run: echo "RUSTC_WRAPPER=" >> $GITHUB_ENV
- name: Install wasm32v1-none target
run: rustup target add wasm32v1-none
@@ -120,6 +126,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Disable forklift cache wrapper
run: echo "RUSTC_WRAPPER=" >> $GITHUB_ENV
- name: Install wasm32v1-none target
run: rustup target add wasm32v1-none
@@ -156,10 +164,14 @@ jobs:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
# if branch is main, use the branch, otherwise set empty string, so it uses the current context
# either PR (including forks) or merge group (main repo)
ref: ${{ matrix.branch == 'main' && matrix.branch || '' }}
- name: Disable forklift cache wrapper
run: echo "RUSTC_WRAPPER=" >> $GITHUB_ENV
- name: script
shell: bash
run: |
@@ -260,6 +272,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Disable forklift cache wrapper
run: echo "RUSTC_WRAPPER=" >> $GITHUB_ENV
- name: Install wasm32v1-none target
run: rustup target add wasm32v1-none
@@ -302,6 +316,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Disable forklift cache wrapper
run: echo "RUSTC_WRAPPER=" >> $GITHUB_ENV
- name: script
run: |
@@ -318,6 +334,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Disable forklift cache wrapper
run: echo "RUSTC_WRAPPER=" >> $GITHUB_ENV
- name: Install wasm32v1-none target
run: rustup target add wasm32v1-none
@@ -386,6 +404,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Disable forklift cache wrapper
run: echo "RUSTC_WRAPPER=" >> $GITHUB_ENV
- name: Rust Cache
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8