ci: use clang-20 for tests

This commit is contained in:
Matt Ehrnschwender
2026-01-28 21:28:54 -05:00
parent f6a97bed1e
commit 0355e9f00a
3 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -20,6 +20,7 @@ on:
env:
CARGO_TERM_COLOR: always
BOFLINK_TEST_CLANG: clang-20
jobs:
ci:
@@ -41,6 +42,6 @@ jobs:
- name: Install CI deps
if: runner.os == 'Linux'
run: |
sudo apt-get install -y clang llvm
sudo apt-get install -y clang-20 llvm-20
- run: cargo xtask ci
+2 -1
View File
@@ -10,6 +10,7 @@ env:
CARGO_PROFILE_RELEASE_LTO: fat
CARGO_PROFILE_RELEASE_STRIP: symbols
CARGO_BUILD_DEP_INFO_BASEDIR: "."
BOFLINK_TEST_CLANG: clang-20
concurrency:
group: "release"
@@ -32,7 +33,7 @@ jobs:
- name: Install system packages
run: |
sudo apt-get update -y
sudo apt-get install -y musl musl-dev musl-tools gcc-aarch64-linux-gnu libc6-arm64-cross clang llvm
sudo apt-get install -y musl musl-dev musl-tools gcc-aarch64-linux-gnu libc6-arm64-cross clang-20 llvm-20
- name: Install rust targets
run: rustup target add x86_64-unknown-linux-gnu x86_64-unknown-linux-musl aarch64-unknown-linux-gnu
+4 -2
View File
@@ -21,7 +21,7 @@ pub struct Clang {
impl std::default::Default for Clang {
fn default() -> Self {
Self {
exe: "clang".into(),
exe: option_env!("BOFLINK_TEST_CLANG").unwrap_or("clang").into(),
#[cfg(windows)]
target: "x86_64-pc-windows-msvc".into(),
#[cfg(not(windows))]
@@ -149,7 +149,9 @@ pub struct Dlltool {
impl std::default::Default for Dlltool {
fn default() -> Self {
Self {
exe: "llvm-dlltool".into(),
exe: option_env!("BOFLINK_TEST_DLLTOOL")
.unwrap_or("llvm-dlltool")
.into(),
machine: "i386:x86-64".into(),
dllname: String::new(),
deffile: PathBuf::new(),