Skip to content

Commit 432fca3

Browse files
Enable layout tests for generated bindings
1 parent 0345f49 commit 432fca3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/ci.yml

+5
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,16 @@ jobs:
4343
- name: Check formatting
4444
run: cargo fmt --all --verbose -- --check
4545

46+
# We always run the next two steps, so that even if formatting fails we
47+
# still get compilation errors for the same run (mainly for matchers).
48+
4649
- name: Cargo check ctru-sys (without tests)
4750
run: cargo 3ds clippy --package ctru-sys --color=always --verbose
51+
if: success() || failure()
4852

4953
- name: Cargo check ctru-rs (including tests)
5054
run: cargo 3ds clippy --package ctru-rs --color=always --verbose --all-targets
55+
if: success() || failure()
5156

5257
test:
5358
strategy:

ctru-sys/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fn main() {
7373
.use_core()
7474
.trust_clang_mangling(false)
7575
.must_use_type("Result")
76-
.layout_tests(false)
76+
.layout_tests(true)
7777
.ctypes_prefix("::libc")
7878
.prepend_enum_name(false)
7979
.blocklist_type("u(8|16|32|64)")

0 commit comments

Comments
 (0)