Skip to content

Commit e15ac8e

Browse files
committed
Add sdist with --vendor-crates test on CI
1 parent 284ddf6 commit e15ac8e

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ jobs:
9696
python -c "from namespace_package import rust; assert rust.rust_func() == 14"
9797
python -c "from namespace_package import python; assert python.python_func() == 15"
9898
99+
- name: Test sdist vendor Rust crates
100+
shell: bash
101+
run: |
102+
cd examples/namespace_package
103+
python setup.py sdist --vendor-crates
104+
cd dist
105+
tar -zxf namespace_package-0.1.0.tar.gz
106+
cd namespace_package-0.1.0
107+
cargo build --offline --target ${{ matrix.platform.rust-target }}
108+
99109
test-abi3:
100110
runs-on: ${{ matrix.os }}
101111
strategy:
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[target.x86_64-apple-darwin]
2+
rustflags = [
3+
"-C", "link-arg=-undefined",
4+
"-C", "link-arg=dynamic_lookup",
5+
]
6+
7+
[target.aarch64-apple-darwin]
8+
rustflags = [
9+
"-C", "link-arg=-undefined",
10+
"-C", "link-arg=dynamic_lookup",
11+
]

0 commit comments

Comments
 (0)