Skip to content

Commit

Permalink
Run tests on GitHub hosted arm64 Linux runner (#4865)
Browse files Browse the repository at this point in the history
* Run tests on GitHub hosted arm64 Linux runner

* Upgrade bindgen to 0.69.4 in pyo3-ffi-check
  • Loading branch information
messense authored Jan 25, 2025
1 parent 5c363b5 commit f89b5f7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ jobs:
python-architecture: "x64",
rust-target: "x86_64-unknown-linux-gnu",
},
{
os: "ubuntu-22.04-arm",
python-architecture: "arm64",
rust-target: "aarch64-unknown-linux-gnu",
},
{
os: "ubuntu-latest",
python-architecture: "x64",
Expand Down Expand Up @@ -193,6 +198,11 @@ jobs:
python-architecture: "x64",
rust-target: "x86_64-unknown-linux-gnu",
},
{
os: "ubuntu-22.04-arm",
python-architecture: "arm64",
rust-target: "aarch64-unknown-linux-gnu",
},
{
os: "windows-latest",
python-architecture: "x64",
Expand Down Expand Up @@ -348,6 +358,15 @@ jobs:
python-architecture: "x64",
rust-target: "x86_64-apple-darwin",
}
# arm64 Linux runner is in public preview, so test 3.13 on it
- rust: stable
python-version: "3.13"
platform:
{
os: "ubuntu-22.04-arm",
python-architecture: "arm64",
rust-target: "aarch64-unknown-linux-gnu",
}

exclude:
# ubuntu-latest (24.04) no longer supports 3.7
Expand Down
2 changes: 1 addition & 1 deletion pyo3-ffi-check/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ path = "../pyo3-ffi"
features = ["extension-module"] # A lazy way of skipping linking in most cases (as we don't use any runtime symbols)

[build-dependencies]
bindgen = "0.66.1"
bindgen = "0.69.4"
pyo3-build-config = { path = "../pyo3-build-config" }

[workspace]
Expand Down
2 changes: 1 addition & 1 deletion pyo3-ffi-check/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fn main() {
let bindings = bindgen::Builder::default()
.header("wrapper.h")
.clang_args(clang_args)
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
// blocklist some values which apparently have conflicting definitions on unix
.blocklist_item("FP_NORMAL")
.blocklist_item("FP_SUBNORMAL")
Expand Down

0 comments on commit f89b5f7

Please sign in to comment.