diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fe58c0d1..f7576d68 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,6 +71,9 @@ jobs: with: toolchain: ${{ matrix.toolchain }} + - name: Install clang for build scripts + run: apt-get update -y && apt-get install -y clang + - name: Hide duplicated warnings from lint job run: echo "::remove-matcher owner=clippy::" diff --git a/ctru-rs/build.rs b/ctru-rs/build.rs index f65d1948..d31a60eb 100644 --- a/ctru-rs/build.rs +++ b/ctru-rs/build.rs @@ -24,6 +24,7 @@ fn main() { let romfs_path = PathBuf::from(format!("{manifest_dir}/{romfs_dir_setting}")); // Check if the romfs path exists so we can compile the module + println!("cargo:rustc-check-cfg=cfg(romfs_exists)"); if romfs_path.exists() { println!("cargo:rustc-cfg=romfs_exists"); } diff --git a/ctru-sys/Cargo.toml b/ctru-sys/Cargo.toml index af93052f..c20f270b 100644 --- a/ctru-sys/Cargo.toml +++ b/ctru-sys/Cargo.toml @@ -26,7 +26,6 @@ layout-tests = [ ] [[test]] -path = "tests/layout_test.rs" name = "layout_test" required-features = ["layout-tests"] diff --git a/ctru-sys/build/test_gen.rs b/ctru-sys/build/test_gen.rs index c2112d45..d8179c92 100644 --- a/ctru-sys/build/test_gen.rs +++ b/ctru-sys/build/test_gen.rs @@ -17,7 +17,6 @@ use bindgen::callbacks::{ use bindgen::FieldVisibilityKind; use proc_macro2::TokenStream; use quote::{format_ident, quote, TokenStreamExt}; - use regex::Regex; use rust_format::{Formatter, RustFmt};