Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,20 @@ jobs:
shell: bash
- run: cargo test --workspace ${{steps.testsuite.outputs.exclude}}

msrv:
name: MSRV
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.77"
- uses: Swatinem/rust-cache@v1
with: { sharedKey: fullBuild }
- run: cargo +1.77 check --workspace --all-targets

examples:
name: Examples ${{matrix.name || format('Rust {0}', matrix.rust)}}
runs-on: ${{matrix.os || 'ubuntu'}}-latest
Expand Down
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// It would be nice to use the rustversion crate here instead,
// but that doesn't work with inner attributes.
fn main() {
println!("cargo::rustc-check-cfg=cfg(nightly)");
println!("cargo:rustc-check-cfg=cfg(nightly)");
if let Some(ver) = rustc_version() {
if ver.contains("nightly") {
println!("cargo:rustc-cfg=nightly")
Expand Down
1 change: 1 addition & 0 deletions engine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ impl IncludeCppEngine {
.raw_line(raw_line)
.every_module_raw_line(all_module_raw_line)
.generate_private_functions(true)
.rust_target(bindgen::RustTarget::stable(77, 0).expect("Rust 1.77 is supported"))
.layout_tests(false); // TODO revisit later

// 3. Passes allowlist and other options to the bindgen::Builder equivalent
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
// except according to those terms.

fn main() {
println!("cargo::rustc-check-cfg=cfg(skip_windows_gnu_failing_tests)");
println!("cargo::rustc-check-cfg=cfg(skip_windows_msvc_failing_tests)");
println!("cargo:rustc-check-cfg=cfg(skip_windows_gnu_failing_tests)");
println!("cargo:rustc-check-cfg=cfg(skip_windows_msvc_failing_tests)");
}
Loading