From 1eee7f31fa50ac3f79cbf919be67c654669e1893 Mon Sep 17 00:00:00 2001 From: messense Date: Sun, 30 Oct 2022 21:50:44 +0800 Subject: [PATCH] rm other ci jobs --- .github/workflows/test.yml | 283 ------------------------------------- 1 file changed, 283 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8a21c1b27..eec308811 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -161,286 +161,3 @@ jobs: 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 - runs-on: ubuntu-latest - env: - PYODIDE_VERSION: '0.21.3' - PYTHON_VERSION: '3.10.2' - NODE_VERSION: 18 - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v2 - id: setup-python - with: - python-version: ${{ env.PYTHON_VERSION }} - - uses: actions/setup-node@v3 - with: - node-version: ${{ env.NODE_VERSION }} - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - components: rust-src - target: wasm32-unknown-emscripten - override: true - - uses: Swatinem/rust-cache@v1 - - run: pip install nox - - name: Setup Pyodide - run: nox -s setup-pyodide - - uses: mymindstorm/setup-emsdk@v11 - with: - version: ${{ env.EMSCRIPTEN_VERSION }} - actions-cache-folder: emsdk-cache - - uses: actions/setup-node@v3 - with: - node-version: ${{ env.NODE_VERSION }} - - name: Run tests - run: nox -s test-emscripten - - test-alpine: - name: Test Alpine Linux - runs-on: ubuntu-latest - env: - RUST_BACKTRACE: '1' - container: alpine:edge - steps: - - uses: actions/checkout@v3 - - name: Install build requirements - run: | - set -ex - apk add cargo python3-dev libffi-dev py3-pip curl bash tar zstd - pip3 install cffi virtualenv - - name: Cache cargo build - uses: Swatinem/rust-cache@v1 - with: - key: maturin-${{ runner.os }}-alpine - - name: Cache test crates cargo build - uses: actions/cache@v2 - with: - path: test-crates/targets - key: test-crates-${{ runner.os }}-alpine-${{ hashFiles('test-crates/*/Cargo.lock') }} - - name: Install cargo-nextest - uses: taiki-e/install-action@nextest - - name: cargo test - run: | - # unset GITHUB_ACTIONS env var to disable zig related tests - env -u GITHUB_ACTIONS cargo nextest run --features password-storage - - test-auditwheel: - name: Test Auditwheel - runs-on: ubuntu-latest - strategy: - fail-fast: ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }} - matrix: - # manylinux2014 fails with `/lib64/libc.so.6: version `GLIBC_2.18'` not found recently - # could be a upstream Rust issue, disable it for now - # - # manylinux: [ 'manylinux2014', 'manylinux_2_24' ] - manylinux: [ 'manylinux_2_24' ] - container: quay.io/pypa/${{ matrix.manylinux }}_x86_64 - steps: - - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - id: rustup - with: - profile: minimal - toolchain: stable - override: true - # Caching - - name: Cache cargo build - uses: Swatinem/rust-cache@v1 - with: - key: maturin-${{ runner.os }} - - name: Cache test crates cargo build - uses: actions/cache@v2 - with: - path: test-crates/*/target - key: auditwheel-test-crates-${{ runner.os }}-${{ steps.rustup.outputs.rustc_hash }}-${{ hashFiles('test-crates/*/Cargo.lock') }} - - name: Compliant Build - run: tests/manylinux_compliant.sh ${{ matrix.manylinux }} - - name: Incompliant Build - if: matrix.manylinux == 'manylinux_2_24' - run: tests/manylinux_incompliant.sh ${{ matrix.manylinux }} - - test-docker: - name: Test Docker - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: "3.8" - - uses: docker/setup-buildx-action@v2 - - name: Build - uses: docker/build-push-action@v2 - with: - context: . - push: false - tags: maturin - load: true - cache-from: type=gha - cache-to: type=gha,mode=max - - name: Cache test crates cargo build - uses: actions/cache@v2 - with: - path: test-crates/*/target - # Dockerfile contains the rustc version - key: docker-test-crates-${{ hashFiles('Dockerfile', 'test-crates/*/Cargo.lock') }} - - name: Test the Docker container - run: ./test-dockerfile.sh - # Fix permissions from docker for caching - - run: sudo chown $(id -u):$(id -g) -R test-crates/*/target - - test-cross-compile: - name: Test Cross Compile - runs-on: ubuntu-latest - container: ${{ matrix.platform.container }} - strategy: - fail-fast: ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }} - matrix: - platform: - # CPython - - target: aarch64-unknown-linux-gnu - abi: cp37-cp37m - python: python3.7 - container: ghcr.io/messense/manylinux2014-cross:aarch64 - - target: armv7-unknown-linux-gnueabihf - abi: cp39-cp39 - python: python3.9 - container: ghcr.io/messense/manylinux2014-cross:armv7 - - target: s390x-unknown-linux-gnu - abi: cp310-cp310 - python: python3.10 - container: ghcr.io/messense/manylinux2014-cross:s390x - # PyPy - - target: aarch64-unknown-linux-gnu - abi: pp37-pypy37_pp73 - python: pypy3.7 - container: ghcr.io/messense/manylinux2014-cross:aarch64 - - target: aarch64-unknown-linux-gnu - abi: pp38-pypy38_pp73 - python: pypy3.8 - container: ghcr.io/messense/manylinux2014-cross:aarch64 - steps: - - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - id: rustup - with: - profile: minimal - toolchain: stable - override: true - target: ${{ matrix.platform.target }} - - name: Build wheels - run: | - set -ex - # Use bundled sysconfig - cargo run --target x86_64-unknown-linux-gnu -- build -i ${{ matrix.platform.python }} --release --out dist --target ${{ matrix.platform.target }} -m test-crates/pyo3-mixed/Cargo.toml - - # Use PYO3_CROSS_LIB_DIR - export PYO3_CROSS_LIB_DIR=/opt/python/${{ matrix.platform.abi }} - cargo run --target x86_64-unknown-linux-gnu -- build -i python3.9 --release --out dist --target ${{ matrix.platform.target }} -m test-crates/pyo3-mixed/Cargo.toml - unset PYO3_CROSS_LIB_DIR - - # Test abi3 - cargo run --target x86_64-unknown-linux-gnu -- build -i ${{ matrix.platform.python }} --release --out dist --target ${{ matrix.platform.target }} -m test-crates/pyo3-pure/Cargo.toml - - test-bootstrap: - name: Test Bootstrap - runs-on: ${{ matrix.os }} - strategy: - fail-fast: ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }} - matrix: - os: [ ubuntu-latest, macos-latest, windows-latest ] - steps: - - uses: actions/checkout@v3 - - uses: dorny/paths-filter@v2 - id: changes - with: - filters: | - changed: - - 'maturin/**' - - 'pyproject.toml' - - 'setup.py' - - 'MANIFEST.in' - - '.github/workflows/test.yml' - - uses: actions-rs/toolchain@v1 - if: steps.changes.outputs.changed == 'true' - with: - profile: minimal - toolchain: stable - override: true - # Caching - - name: Cache cargo build - if: steps.changes.outputs.changed == 'true' - uses: Swatinem/rust-cache@v1 - with: - key: maturin-${{ runner.os }}-bootstrap - - uses: actions/setup-python@v4 - if: steps.changes.outputs.changed == 'true' - with: - python-version: "3.10" - - name: Build and install - shell: bash - run: | - set -ex - pip install build - python3 -m build --wheel -o dist - pip install dist/maturin*.whl - if: steps.changes.outputs.changed == 'true' - - run: maturin --version - if: steps.changes.outputs.changed == 'true' - - run: python3 -m maturin --version - if: steps.changes.outputs.changed == 'true' - - name: Upload wheel artifacts - if: steps.changes.outputs.changed == 'true' - uses: actions/upload-artifact@v3 - with: - name: wheels - path: dist - - test-msrv: - name: Test MSRV - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: '1.61.0' - override: true - # Caching - - name: Cache cargo build - uses: Swatinem/rust-cache@v1 - with: - key: maturin-${{ runner.os }}-msrv - - name: cargo build - run: cargo build --all - - check: - name: Check ${{ matrix.platform.target }} - strategy: - fail-fast: ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }} - matrix: - platform: - - target: armv5te-unknown-linux-gnueabi - apt-packages: gcc-arm-linux-gnueabi - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Install packages - run: | - sudo apt-get update - sudo apt-get install -y ${{ matrix.platform.apt-packages }} - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - target: ${{ matrix.platform.target }} - override: true - - name: Cache cargo build - uses: Swatinem/rust-cache@v1 - - name: cargo check - run: cargo check --target ${{ matrix.platform.target }}