From e543b41cb0b00a5070c06b6e3d967c811e9cde61 Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Tue, 22 Sep 2026 17:50:53 +0200 Subject: [PATCH] CI: a writable CARGO_HOME, so the portal git dependency can be fetched The shared /var/local/cargo is read-only for the runner; 0.1.1 built only because this machine had already cloned the same portal tag into it. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01L4jrCgLiKKHAEFuZUJjckH --- .gitea/workflows/publish.yml | 4 +++- .gitea/workflows/test.yml | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 956c186..8351db9 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -12,7 +12,9 @@ jobs: publish: runs-on: bare env: - CARGO_HOME: /var/local/cargo + # Writable, unlike the shared /var/local/cargo - see test.yml. + CARGO_HOME: /var/local/cargo-target/iris-cargo-home + RUSTC_WRAPPER: /usr/bin/sccache RUSTUP_HOME: /var/local/rustup PATH: /var/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin SCCACHE_DIR: /var/local/sccache diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 0a1a4a2..93bbd7b 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -10,7 +10,12 @@ jobs: runs-on: bare env: # Same shared toolchain and cache as uhhm/portal's workflows. - CARGO_HOME: /var/local/cargo + # Not the shared /var/local/cargo: the runner may only read it, and + # the portal git dependency has to be cloned into CARGO_HOME. This + # one lives under the writable target dir; the rustc wrapper the + # shared config would have set is given here instead. + CARGO_HOME: /var/local/cargo-target/iris-cargo-home + RUSTC_WRAPPER: /usr/bin/sccache RUSTUP_HOME: /var/local/rustup PATH: /var/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin SCCACHE_DIR: /var/local/sccache