From 86b2c1b4ea62ae9402dd2c9ace44251355cb6e1e Mon Sep 17 00:00:00 2001 From: robojerk Date: Fri, 15 Aug 2025 17:37:50 -0700 Subject: [PATCH] fix: Force clean Rust toolchain to resolve SIGSEGV compilation errors - Add rustup toolchain install stable --force to ensure clean toolchain - Clear cargo cache to avoid corruption issues - Resolves Rust compilation SIGSEGV errors in CI environment - Ensures stable Rust toolchain is properly installed and cached Fixes build failures caused by corrupted Rust toolchain in rust:trixie container. --- .forgejo/workflows/ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 7cb7d22a..2c04c202 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -81,13 +81,18 @@ jobs: rustc --version cargo --version - # Force stable Rust to avoid SIGSEGV bugs in 1.89.0 - echo "๐Ÿ”ง Forcing stable Rust toolchain..." + # Force clean Rust toolchain to avoid SIGSEGV bugs + echo "๐Ÿ”ง Forcing clean stable Rust toolchain..." rustup default stable rustup update stable - echo "โœ… Now using stable Rust:" + rustup toolchain install stable --force + echo "โœ… Now using clean stable Rust:" rustc --version cargo --version + + # Clear cargo cache to avoid corruption + echo "๐Ÿงน Clearing cargo cache..." + cargo clean - name: Build project run: |