From 6e300d537c9935fd0f06754c759b02257b4749d7 Mon Sep 17 00:00:00 2001 From: rob thijssen Date: Mon, 14 Sep 2026 20:10:06 +0300 Subject: [PATCH] deploy: require nvcc at build time The CUDA build script warns and embeds an empty kernel when nvcc is absent, which is right for the rust runner's test job and wrong for a deploy build. MINER_CUDA_REQUIRE=1 turns that into a build failure before any host is touched; the release workflow already sets it. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01Ue5ZZm1Hiv5zPnucykKKuF --- .gitea/workflows/deploy.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index f40bfbe..6908ab9 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -61,6 +61,11 @@ jobs: # Embedded by crates/miner-cli/build.rs into --version; validate below # asserts the host runs exactly this commit. MINER_BUILD_SHA: ${{ github.sha }} + # Fail the build here if nvcc is missing rather than shipping a + # binary that falls back to wgpu and failing validate on the hosts. + # (The same warning in ci.yml's test job is expected: the `rust` + # runner has no nvcc and only lints and tests.) + MINER_CUDA_REQUIRE: "1" run: | set -euo pipefail cargo build --release --locked -p miner-cli -- 2.52.0