Skip to content

Commit 219aa39

Browse files
committed
Cargo workflow
1 parent 15c8e58 commit 219aa39

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/cargo.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: cargo
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
paths:
9+
- "Modules/cpython-sys/**"
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
build:
17+
timeout-minutes: 15
18+
runs-on: ubuntu-24.04
19+
steps:
20+
- uses: actions/checkout@v6
21+
with:
22+
persist-credentials: false
23+
- uses: dtolnay/rust-toolchain@stable
24+
with:
25+
toolchain: stable
26+
- run: cargo test
27+
- run: cargo fmt --check
28+
- run: cargo clippy

Modules/cpython-sys/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ fn generate_c_api_bindings(srcdir: &Path, builddir: Option<&str>, out_path: &Pat
4646
if let Some(build) = builddir {
4747
include_dirs.push(PathBuf::from(build));
4848
}
49+
4950
for dir in include_dirs {
5051
builder = builder.clang_arg(format!("-I{}", dir.display()));
5152
}

0 commit comments

Comments
 (0)