From cf2758f9dc4e20826a884d0b3a3ada8b3311235a Mon Sep 17 00:00:00 2001 From: joe Date: Wed, 13 Aug 2025 22:19:42 -0700 Subject: [PATCH] Fix CI: Use stable Rust version to avoid compiler crash - Replace pre-installed Rust 1.89.0 (which has SIGSEGV bug) with rustup - Install and use Rust 1.75.0 (known stable version) - This should resolve the tracing-core compilation crash - Keep all other CI optimizations intact --- .forgejo/workflows/ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 9b29be68..2acb7b40 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -71,9 +71,18 @@ jobs: cp -r /tmp/apt-ostree/* . cp -r /tmp/apt-ostree/.* . 2>/dev/null || true - - name: Verify Rust installation + - name: Install Rust toolchain run: | - echo "Using pre-installed Rust from rust:slim-trixie:" + # Install rustup to get a stable Rust version + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + . ~/.cargo/env + + # Use a more stable Rust version (1.75.0 is known to be very stable) + rustup install 1.75.0 + rustup default 1.75.0 + + # Verify Rust version + echo "Using Rust version:" rustc --version cargo --version