Skip to content

Commit ec6fbde

Browse files
committed
set rust target through env
1 parent cfefd8e commit ec6fbde

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,25 +85,25 @@ jobs:
8585
run: echo LD_LIBRARY_PATH=${pythonLocation}/lib >> $GITHUB_ENV
8686

8787
- name: Build docs
88-
run: cargo doc --features "num-bigint num-complex" --verbose --target ${{ matrix.platform.rust-target }}
88+
run: cargo doc --features "num-bigint num-complex" --verbose
8989

9090
- name: Build without default features
91-
run: cargo build --no-default-features --verbose --target ${{ matrix.platform.rust-target }}
91+
run: cargo build --no-default-features --verbose
9292

9393
- name: Build with default features
94-
run: cargo build --features "num-bigint num-complex" --verbose --target ${{ matrix.platform.rust-target }}
94+
run: cargo build --features "num-bigint num-complex" --verbose
9595

9696
# Run tests (except on PyPy, because no embedding API).
9797
- if: matrix.python-version != 'pypy-3.6'
9898
name: Test
99-
run: cargo test --features "num-bigint num-complex" --target ${{ matrix.platform.rust-target }}
99+
run: cargo test --features "num-bigint num-complex"
100100
# Run tests again, but in abi3 mode
101101
- if: matrix.python-version != 'pypy-3.6'
102102
name: Test (abi3)
103-
run: cargo test --no-default-features --features "abi3,macros" --target ${{ matrix.platform.rust-target }}
103+
run: cargo test --no-default-features --features "abi3,macros"
104104

105105
- name: Test proc-macro code
106-
run: cargo test --manifest-path=pyo3-macros-backend/Cargo.toml --target ${{ matrix.platform.rust-target }}
106+
run: cargo test --manifest-path=pyo3-macros-backend/Cargo.toml
107107

108108
- name: Install python test dependencies
109109
run: |
@@ -118,6 +118,7 @@ jobs:
118118
done
119119
120120
env:
121+
CARGO_BUILD_TARGET: ${{ matrix.platform.rust-target }}
121122
RUST_BACKTRACE: 1
122123

123124
coverage:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build-system]
2-
requires = ["maturin @ git+https://github.com/davidhewitt/maturin.git@f4dce9879999ea404379e2ebcceb9af661bcd5ec"]
2+
requires = ["maturin @ git+https://github.com/PyO3/maturin.git@9f8cdba7894cc65110d1ba94140adef97b91e1e3"]
33
build-backend = "maturin"

0 commit comments

Comments
 (0)