From af3b0c9451f4246f80bf9285b44ff392468ef8e1 Mon Sep 17 00:00:00 2001 From: messense Date: Fri, 16 Sep 2022 12:06:25 +0800 Subject: [PATCH] Test `maturin new` on CI --- .github/workflows/test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9c0fde4b8..6e7e3b698 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -148,6 +148,14 @@ jobs: rustup target add x86_64-unknown-linux-gnu export PYO3_CONFIG_FILE=$(pwd)/test-crates/pyo3-mixed/pyo3-config.txt cargo run -- build -m test-crates/pyo3-mixed/Cargo.toml --target x86_64-unknown-linux-gnu --zig + - name: test maturin new + shell: bash + run: | + set -ex + cargo run new -b pyo3 test-crates/pyo3-new + cargo run build -m test-crates/pyo3-new/Cargo.toml --target-dir test-crates/targets/ + cargo run new --mixed -b pyo3 test-crates/pyo3-new-mixed + cargo run build -m test-crates/pyo3-new-mixed/Cargo.toml --target-dir test-crates/targets/ test-emscripten: name: Test Emscripten