Skip to content

Commit 2f52e22

Browse files
committed
Merge BlockstreamResearch#276: Fix Windows
9ae18c6 ci: Run tests on Windows (Christian Lewe) af457a5 fix: simplicity-sys is skipped in CI (Christian Lewe) a1e432f fix: FFI types on Windows (Christian Lewe) Pull request description: Fixes BlockstreamResearch#274 ACKs for top commit: apoelstra: ACK 9ae18c6; successfully ran local tests Tree-SHA512: 068b2a91f2c8f72b624d4006315b6182d4ea157e721741350e6d00b516a7c27656fea6f84dc1b652f9afd6dd4ca6ed6785793830106c5cf874a665d57959559d
2 parents 23f3d3b + 9ae18c6 commit 2f52e22

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
runs-on: ${{ matrix.os }}
108108
strategy:
109109
matrix:
110-
os: [macos-latest]
110+
os: [macos-latest, windows-latest]
111111
steps:
112112
- name: Checkout Crate
113113
uses: actions/checkout@v4
@@ -116,4 +116,6 @@ jobs:
116116
- name: Set dependencies
117117
run: cp Cargo-recent.lock Cargo.lock
118118
- name: Run unit tests
119-
run: cargo test --locked --workspace --all-features
119+
run: |
120+
cargo test --locked --manifest-path simplicity-sys/Cargo.toml
121+
cargo test --locked --workspace --all-features

simplicity-sys/src/ffi.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,18 @@ pub type c_int = i32;
1919
pub type c_uint = u32;
2020
pub type c_size_t = usize;
2121
pub type c_uint_fast8_t = u8;
22-
#[cfg(any(target_arch = "wasm32", target_arch = "aarch64"))]
22+
#[cfg(all(
23+
any(target_arch = "wasm32", target_arch = "aarch64"),
24+
not(target_os = "windows")
25+
))]
2326
pub type c_uint_fast16_t = u16;
24-
#[cfg(not(any(target_arch = "wasm32", target_arch = "aarch64")))]
27+
#[cfg(target_os = "windows")]
28+
pub type c_uint_fast16_t = u32;
29+
#[cfg(not(any(target_arch = "wasm32", target_arch = "aarch64", target_os = "windows")))]
2530
pub type c_uint_fast16_t = usize;
26-
#[cfg(any(target_arch = "wasm32", target_arch = "aarch64"))]
31+
#[cfg(any(target_arch = "wasm32", target_arch = "aarch64", target_os = "windows"))]
2732
pub type c_uint_fast32_t = u32;
28-
#[cfg(not(any(target_arch = "wasm32", target_arch = "aarch64")))]
33+
#[cfg(not(any(target_arch = "wasm32", target_arch = "aarch64", target_os = "windows")))]
2934
pub type c_uint_fast32_t = usize;
3035
#[cfg(target_arch = "wasm32")]
3136
pub type c_uint_fast64_t = u64;

0 commit comments

Comments
 (0)