Skip to content

Commit 1ddbbee

Browse files
minto-daneCopilot
andcommitted
ci: install x86_64-unknown-none target
Fix CI newlib user-lib build failure (E0463: can't find crate for core) by installing the rust target required by builders/newlib.rs. Also declare both targets in rust-toolchain.toml for local parity. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2a8ccd3 commit 1ddbbee

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
uses: dtolnay/rust-toolchain@nightly
3434
with:
3535
components: rust-src, llvm-tools, rustfmt
36-
targets: x86_64-unknown-uefi
36+
targets: x86_64-unknown-uefi,x86_64-unknown-none
3737

3838
- name: Cache Rust build artifacts
3939
uses: Swatinem/rust-cache@v2

rust-toolchain.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[toolchain]
22
channel = "nightly"
33
components = ["rust-src", "llvm-tools"]
4+
targets = ["x86_64-unknown-uefi", "x86_64-unknown-none"]

0 commit comments

Comments
 (0)