Skip to content

Commit

Permalink
Add sdist with --vendor-crates test on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Feb 22, 2021
1 parent 284ddf6 commit e15ac8e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,16 @@ jobs:
python -c "from namespace_package import rust; assert rust.rust_func() == 14"
python -c "from namespace_package import python; assert python.python_func() == 15"
- name: Test sdist vendor Rust crates
shell: bash
run: |
cd examples/namespace_package
python setup.py sdist --vendor-crates
cd dist
tar -zxf namespace_package-0.1.0.tar.gz
cd namespace_package-0.1.0
cargo build --offline --target ${{ matrix.platform.rust-target }}
test-abi3:
runs-on: ${{ matrix.os }}
strategy:
Expand Down
11 changes: 11 additions & 0 deletions examples/namespace_package/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[target.x86_64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]

[target.aarch64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]

0 comments on commit e15ac8e

Please sign in to comment.