Skip to content

Commit 31b71c0

Browse files
committed
Cargo workflow
1 parent 15c8e58 commit 31b71c0

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/cargo.yml

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