From d01c61df20922d266801d4854c9824ca21ee4541 Mon Sep 17 00:00:00 2001 From: tajniak81 <13187254+tajniak81@users.noreply.github.com> Date: Tue, 3 Nov 2026 10:36:05 +0100 Subject: [PATCH] Install Rust in CI before building yrs.wasm The Gitea runner image has no rustup, so the Server job failed before go generate. dtolnay/rust-toolchain installs stable with the wasm32-wasip1 target. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23c7c10..c2bb9c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,12 +16,14 @@ jobs: - uses: actions/setup-go@v5 with: go-version: "1.26" + - uses: dtolnay/rust-toolchain@stable + if: matrix.module == 'Server' + with: + targets: wasm32-wasip1 - name: Build yrs.wasm (embedded by the server) if: matrix.module == 'Server' working-directory: Server - run: | - rustup target add wasm32-wasip1 - go generate ./internal/ycrdt + run: go generate ./internal/ycrdt - name: Go types are up to date if: matrix.module == 'Server' working-directory: Server