File tree 5 files changed +25
-11
lines changed
5 files changed +25
-11
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ parse_human,
43
43
components : " llvm-tools-preview"
44
44
45
45
- name : Install Dependencies
46
- run : cargo update && cargo update -p cc --precise 1.0.83 && cargo install cargo-fuzz
46
+ run : cargo update && cargo update -p cc --precise 1.0.83 && cargo install --force cargo-fuzz
47
47
48
48
- name : Run Fuzz Target
49
49
run : ./fuzz/fuzz.sh "${{ matrix.fuzz_target }}"
Original file line number Diff line number Diff line change @@ -101,3 +101,19 @@ jobs:
101
101
components : clippy
102
102
- name : Running cargo clippy
103
103
run : cargo clippy --all-targets -- --deny warnings
104
+
105
+ test-other-platforms :
106
+ name : Test
107
+ runs-on : ${{ matrix.os }}
108
+ strategy :
109
+ matrix :
110
+ os : [macos-latest]
111
+ steps :
112
+ - name : Checkout Crate
113
+ uses : actions/checkout@v4
114
+ - name : Checkout Toolchain
115
+ uses : dtolnay/rust-toolchain@stable
116
+ - name : Set dependencies
117
+ run : cp Cargo-recent.lock Cargo.lock
118
+ - name : Run unit tests
119
+ run : cargo test --locked --workspace --all-features
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ simplicity-lang = { path = "..", features = ["test-utils"] }
26
26
27
27
[dev-dependencies]
28
28
base64 = "0.22.1"
29
+
30
+ [lints.rust]
31
+ unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }
29
32
EOF
30
33
31
34
for targetFile in $( listTargetFiles) ; do
@@ -85,7 +88,7 @@ $(for name in $(listTargetNames); do echo "$name,"; done)
85
88
components: "llvm-tools-preview"
86
89
87
90
- name: Install Dependencies
88
- run: cargo update && cargo update -p cc --precise 1.0.83 && cargo install cargo-fuzz
91
+ run: cargo update && cargo update -p cc --precise 1.0.83 && cargo install --force cargo-fuzz
89
92
90
93
- name: Run Fuzz Target
91
94
run: ./fuzz/fuzz.sh "\$ {{ matrix.fuzz_target }}"
Original file line number Diff line number Diff line change @@ -231,13 +231,10 @@ mod tests {
231
231
use std:: mem:: { align_of, size_of} ;
232
232
233
233
use crate :: c_jets:: { c_env:: * , frame_ffi:: * } ;
234
- use crate :: ffi:: * ;
235
234
236
235
#[ test]
237
236
fn test_sizes ( ) {
238
237
unsafe {
239
- assert_eq ! ( size_of:: <u32 >( ) , c_sizeof_ubounded) ;
240
- assert_eq ! ( size_of:: <usize >( ) , c_sizeof_UWORD) ;
241
238
assert_eq ! ( size_of:: <CFrameItem >( ) , c_sizeof_frameItem) ;
242
239
assert_eq ! ( size_of:: <CRawBuffer >( ) , c_sizeof_rawBuffer) ;
243
240
assert_eq ! ( size_of:: <CRawInput >( ) , c_sizeof_rawInput) ;
@@ -251,8 +248,6 @@ mod tests {
251
248
#[ test]
252
249
fn test_aligns ( ) {
253
250
unsafe {
254
- assert_eq ! ( align_of:: <u32 >( ) , c_alignof_ubounded) ;
255
- assert_eq ! ( align_of:: <usize >( ) , c_alignof_UWORD) ;
256
251
assert_eq ! ( align_of:: <CFrameItem >( ) , c_alignof_frameItem) ;
257
252
assert_eq ! ( align_of:: <CRawBuffer >( ) , c_alignof_rawBuffer) ;
258
253
assert_eq ! ( align_of:: <CRawInput >( ) , c_alignof_rawInput) ;
Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ pub type c_int = i32;
19
19
pub type c_uint = u32 ;
20
20
pub type c_size_t = usize ;
21
21
pub type c_uint_fast8_t = u8 ;
22
- #[ cfg( target_arch = "wasm32" ) ]
22
+ #[ cfg( any ( target_arch = "wasm32" , target_arch = "aarch64" ) ) ]
23
23
pub type c_uint_fast16_t = u16 ;
24
- #[ cfg( not( target_arch = "wasm32" ) ) ]
24
+ #[ cfg( not( any ( target_arch = "wasm32" , target_arch = "aarch64" ) ) ) ]
25
25
pub type c_uint_fast16_t = usize ;
26
- #[ cfg( target_arch = "wasm32" ) ]
26
+ #[ cfg( any ( target_arch = "wasm32" , target_arch = "aarch64" ) ) ]
27
27
pub type c_uint_fast32_t = u32 ;
28
- #[ cfg( not( target_arch = "wasm32" ) ) ]
28
+ #[ cfg( not( any ( target_arch = "wasm32" , target_arch = "aarch64" ) ) ) ]
29
29
pub type c_uint_fast32_t = usize ;
30
30
#[ cfg( target_arch = "wasm32" ) ]
31
31
pub type c_uint_fast64_t = u64 ;
You can’t perform that action at this time.
0 commit comments