From c86bcae68ed07392f9c886005cc9d4212c179183 Mon Sep 17 00:00:00 2001 From: Mike Solar Date: Thu, 24 Sep 2026 12:44:41 +0800 Subject: [PATCH] ci(openkylin): pin HOME so rustup installs in the container job The openKylin image runs as root while Actions sets HOME=/github/home; dtolnay/rust-toolchain fails with "$HOME differs from euid-obtained home directory" and the job never reaches the build. Pin HOME/CARGO_HOME/ RUSTUP_HOME to root's for the whole job. --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e17ee0872..c5aeade24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -491,6 +491,19 @@ jobs: # their own repo and build as path dependencies of oakapp. submodules: true + # The container runs as root but Actions sets HOME=/github/home; + # rustup refuses the euid mismatch ("$HOME differs from + # euid-obtained home directory") and would install a toolchain the + # later steps cannot find under the Actions home. Pin the whole job + # to root's home so rustup/cargo and the toolchain agree. + - name: Pin HOME for rustup + run: | + { + echo "HOME=/root" + echo "CARGO_HOME=/root/.cargo" + echo "RUSTUP_HOME=/root/.rustup" + } >> "$GITHUB_ENV" + - name: Install Rust (stable) uses: dtolnay/rust-toolchain@stable