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.
This commit is contained in:
2026-09-24 12:44:41 +08:00
parent 7a9e11b729
commit c86bcae68e
+13
View File
@@ -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