From b2f9cbc089b0ed3ee8c715af33388035c1c9cb3f Mon Sep 17 00:00:00 2001 From: Mike Swanson Date: Fri, 29 May 2026 08:09:44 -0700 Subject: [PATCH] ci: force linux target for build-server clippy/test .cargo/config.toml defaults to x86_64-pc-windows-msvc for local Windows dev, which made the CI clippy/test steps (no explicit --target) try to compile for an uninstalled cross target (E0463 can't find crate for core). Set CARGO_BUILD_TARGET=x86_64-unknown-linux-gnu for the build-server job. Co-Authored-By: Claude Opus 4.8 (1M context) --- .gitea/workflows/build-and-test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/build-and-test.yml b/.gitea/workflows/build-and-test.yml index 21123bc..7e048f3 100644 --- a/.gitea/workflows/build-and-test.yml +++ b/.gitea/workflows/build-and-test.yml @@ -18,6 +18,11 @@ jobs: build-server: name: Build Server (Linux) runs-on: ubuntu-latest + # .cargo/config.toml defaults to the windows-msvc target for local Windows dev. + # On the Linux runner, force the host target so clippy/test (which do not pass + # an explicit --target) build for Linux instead of an uninstalled cross target. + env: + CARGO_BUILD_TARGET: x86_64-unknown-linux-gnu steps: - name: Checkout code uses: actions/checkout@v4