BlueGit

ict rusty-teams

ci(kvt): ci-setup.sh maakt cargo-home/env aan als de cache dat bestand mist

hephaestus

Authored 2026-11-30 · 1 day ago

Hash
8e8c21c5ac98cf4abd9f97e5b81919880aa4f6e2
Parent
e0266c32
Pipeline
Passed
2 files changed +9 −2
KVT-FORK.md +2 −1
@@ -112,7 +112,8 @@ teruggedraaid, de rest blijft:
112 112 `when: manual` meer.
113 113 - **Blijft:** de `CARGO_HOME`/`RUSTUP_HOME`-exports in `linux_release`, `windows_release` en
114 114 `app_test` (anders zoekt `. "$CARGO_HOME/env"` in `$HOME/.cargo`, eerste echte run, pipeline 542)
115 en de lichtere `ci-setup.sh`: `clang-21` via het apt.llvm.org-repo zelf en niet via `llvm.sh`
115 `ci-setup.sh` maakt `cargo-home/env` zelf aan als de cache die niet bevat (de cache bewaart alleen
116 `cargo-home/bin`; zonder dat bestand stopte `app_test` in pipeline 556), en de lichtere `ci-setup.sh`: `clang-21` via het apt.llvm.org-repo zelf en niet via `llvm.sh`
116 117 (dat ook lldb, lld en clangd bijzet), zonder `software-properties-common`.
117 118
118 119 Merge-tip: conflict in `blue-ci-cd.yml` of `Cargo.toml` alleen de KVT-jobs en
@@ -112,7 +112,8 @@ teruggedraaid, de rest blijft:
112 `when: manual` meer.
112 `when: manual` meer.
113- **Blijft:** de `CARGO_HOME`/`RUSTUP_HOME`-exports in `linux_release`, `windows_release` en
113- **Blijft:** de `CARGO_HOME`/`RUSTUP_HOME`-exports in `linux_release`, `windows_release` en
114 `app_test` (anders zoekt `. "$CARGO_HOME/env"` in `$HOME/.cargo`, eerste echte run, pipeline 542)
114 `app_test` (anders zoekt `. "$CARGO_HOME/env"` in `$HOME/.cargo`, eerste echte run, pipeline 542)
115 en de lichtere `ci-setup.sh`: `clang-21` via het apt.llvm.org-repo zelf en niet via `llvm.sh`
115 `ci-setup.sh` maakt `cargo-home/env` zelf aan als de cache die niet bevat (de cache bewaart alleen
116 `cargo-home/bin`; zonder dat bestand stopte `app_test` in pipeline 556), en de lichtere `ci-setup.sh`: `clang-21` via het apt.llvm.org-repo zelf en niet via `llvm.sh`
116 (dat ook lldb, lld en clangd bijzet), zonder `software-properties-common`.
117 (dat ook lldb, lld en clangd bijzet), zonder `software-properties-common`.
117
118
118Merge-tip: conflict in `blue-ci-cd.yml` of `Cargo.toml` alleen de KVT-jobs en
119Merge-tip: conflict in `blue-ci-cd.yml` of `Cargo.toml` alleen de KVT-jobs en
packaging/kvt/ci-setup.sh +7 −1
@@ -47,8 +47,14 @@ fi
47 47 if ! command -v cargo >/dev/null; then
48 48 curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable >/dev/null
49 49 fi
50 # De CI-cache bewaart cargo-home/bin maar niet cargo-home/env. Is cargo er dan al (uit de cache),
51 # dan draait rustup-init niet en ontbreekt dat bestand, waar de jobs hierna hun PATH uit halen.
52 cargo_env="${CARGO_HOME:-$HOME/.cargo}/env"
53 if [[ ! -f "$cargo_env" ]]; then
54 printf '%s\n' "case \":\${PATH}:\" in *:\"$(dirname "$cargo_env")/bin\":*) ;; *) export PATH=\"$(dirname "$cargo_env")/bin:\$PATH\" ;; esac" > "$cargo_env"
55 fi
50 56 # shellcheck disable=SC1091
51 . "${CARGO_HOME:-$HOME/.cargo}/env"
57 . "$cargo_env"
52 58 rustup toolchain install stable --profile minimal >/dev/null
53 59 if [[ "$mode" == windows ]]; then
54 60 rustup target add x86_64-pc-windows-msvc >/dev/null
@@ -47,8 +47,14 @@ fi
47if ! command -v cargo >/dev/null; then
47if ! command -v cargo >/dev/null; then
48 curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable >/dev/null
48 curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable >/dev/null
49fi
49fi
50# De CI-cache bewaart cargo-home/bin maar niet cargo-home/env. Is cargo er dan al (uit de cache),
51# dan draait rustup-init niet en ontbreekt dat bestand, waar de jobs hierna hun PATH uit halen.
52cargo_env="${CARGO_HOME:-$HOME/.cargo}/env"
53if [[ ! -f "$cargo_env" ]]; then
54 printf '%s\n' "case \":\${PATH}:\" in *:\"$(dirname "$cargo_env")/bin\":*) ;; *) export PATH=\"$(dirname "$cargo_env")/bin:\$PATH\" ;; esac" > "$cargo_env"
55fi
50# shellcheck disable=SC1091
56# shellcheck disable=SC1091
51. "${CARGO_HOME:-$HOME/.cargo}/env"
57. "$cargo_env"
52rustup toolchain install stable --profile minimal >/dev/null
58rustup toolchain install stable --profile minimal >/dev/null
53if [[ "$mode" == windows ]]; then
59if [[ "$mode" == windows ]]; then
54 rustup target add x86_64-pc-windows-msvc >/dev/null
60 rustup target add x86_64-pc-windows-msvc >/dev/null