From dd1dc39660e5fb52f0be852fdd07b248c2ef1c8a Mon Sep 17 00:00:00 2001 From: James Peter Date: Tue, 28 Oct 2025 14:59:44 +1000 Subject: [PATCH] fix(ci): align preview build toolchain with rust-toolchain --- .github/workflows/preview-build.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 2590fead3a8..4450c3233e5 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -63,15 +63,22 @@ jobs: - name: Install Rust toolchain shell: bash run: | + TOOLCHAIN=1.90.0 rustup set profile minimal - rustup toolchain install 1.89.0 --profile minimal --target ${{ matrix.target }} - rustup default 1.89.0 + rustup toolchain install "$TOOLCHAIN" --profile minimal + rustup default "$TOOLCHAIN" + + if [[ "$RUNNER_OS" == "Linux" ]]; then + rustup target add x86_64-unknown-linux-musl aarch64-unknown-linux-musl + fi + + rustup target add "${{ matrix.target }}" - name: Rust cache (target + registries) uses: Swatinem/rust-cache@v2 with: prefix-key: v1-preview - shared-key: preview-${{ matrix.target }}-rust-1.89 + shared-key: preview-${{ matrix.target }}-rust-1.90 workspaces: | code-rs -> target codex-rs -> target