Skip to content

Commit f89b5f7

Browse files
authored
Run tests on GitHub hosted arm64 Linux runner (PyO3#4865)
* Run tests on GitHub hosted arm64 Linux runner * Upgrade bindgen to 0.69.4 in pyo3-ffi-check
1 parent 5c363b5 commit f89b5f7

3 files changed

Lines changed: 21 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ jobs:
102102
python-architecture: "x64",
103103
rust-target: "x86_64-unknown-linux-gnu",
104104
},
105+
{
106+
os: "ubuntu-22.04-arm",
107+
python-architecture: "arm64",
108+
rust-target: "aarch64-unknown-linux-gnu",
109+
},
105110
{
106111
os: "ubuntu-latest",
107112
python-architecture: "x64",
@@ -193,6 +198,11 @@ jobs:
193198
python-architecture: "x64",
194199
rust-target: "x86_64-unknown-linux-gnu",
195200
},
201+
{
202+
os: "ubuntu-22.04-arm",
203+
python-architecture: "arm64",
204+
rust-target: "aarch64-unknown-linux-gnu",
205+
},
196206
{
197207
os: "windows-latest",
198208
python-architecture: "x64",
@@ -348,6 +358,15 @@ jobs:
348358
python-architecture: "x64",
349359
rust-target: "x86_64-apple-darwin",
350360
}
361+
# arm64 Linux runner is in public preview, so test 3.13 on it
362+
- rust: stable
363+
python-version: "3.13"
364+
platform:
365+
{
366+
os: "ubuntu-22.04-arm",
367+
python-architecture: "arm64",
368+
rust-target: "aarch64-unknown-linux-gnu",
369+
}
351370

352371
exclude:
353372
# ubuntu-latest (24.04) no longer supports 3.7

pyo3-ffi-check/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ path = "../pyo3-ffi"
1313
features = ["extension-module"] # A lazy way of skipping linking in most cases (as we don't use any runtime symbols)
1414

1515
[build-dependencies]
16-
bindgen = "0.66.1"
16+
bindgen = "0.69.4"
1717
pyo3-build-config = { path = "../pyo3-build-config" }
1818

1919
[workspace]

pyo3-ffi-check/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fn main() {
2828
let bindings = bindgen::Builder::default()
2929
.header("wrapper.h")
3030
.clang_args(clang_args)
31-
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
31+
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
3232
// blocklist some values which apparently have conflicting definitions on unix
3333
.blocklist_item("FP_NORMAL")
3434
.blocklist_item("FP_SUBNORMAL")

0 commit comments

Comments
 (0)