Skip to content

Commit 1c6b377

Browse files
MagicalTuxclaude
andcommitted
Fix CI build: use system rustc over platform-tools rustc 1.75
Platform-tools ships rustc 1.75 which is too old for current deps. Install platform-tools for the SBF target compiler, then prepend system rustc to PATH so host compilation uses a modern rustc. Revert unnecessary proc-macro-crate/toml_edit downgrades. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c1d802d commit 1c6b377

File tree

2 files changed

+26
-13
lines changed

2 files changed

+26
-13
lines changed

.github/workflows/verifiable-build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,14 @@ jobs:
2323
run: solana-keygen new --no-bip39-passphrase
2424

2525
- name: Build program
26-
run: cargo build-sbf --workspace
26+
run: |
27+
# Install platform-tools (SBF target compiler)
28+
cargo build-sbf --force-tools-install
29+
# Prepend system rustc so it takes precedence over platform-tools rustc
30+
# (platform-tools ships rustc 1.75 which is too old for current deps)
31+
SYSTEM_RUSTC_DIR="$(dirname "$(rustup which rustc)")"
32+
export PATH="$SYSTEM_RUSTC_DIR:$PATH"
33+
cargo build-sbf --workspace --no-rustup-override --skip-tools-install
2734
2835
- name: Start test validator
2936
run: |

Cargo.lock

Lines changed: 18 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)