From ea797cccf4f82b2c46957d0097df87d9f6cba239 Mon Sep 17 00:00:00 2001 From: bab2min Date: Tue, 31 Oct 2023 19:57:40 +0900 Subject: [PATCH] excluded ppc64le & python3.12 from workflows --- .github/workflows/deploy.yml | 7 ++++++- .github/workflows/deploy_test.yml | 9 +++++++-- .github/workflows/pull_request_test.yml | 1 + 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index af665dc..dd19615 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -221,7 +221,12 @@ jobs: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - for cp in cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312 + if [ "${{ matrix.arch }}" = "aarch64" ]; then + export CPS="cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312" + else + export CPS="cp39-cp39 cp310-cp310 cp311-cp311" + fi + for cp in $CPS do /opt/python/${cp}/bin/python -m pip install wheel numpy==`/opt/python/${cp}/bin/python .github/workflows/numpy_version.py` USE_MIMALLOC=1 /opt/python/${cp}/bin/python setup.py build bdist_wheel diff --git a/.github/workflows/deploy_test.yml b/.github/workflows/deploy_test.yml index 2cb15f8..712bc42 100644 --- a/.github/workflows/deploy_test.yml +++ b/.github/workflows/deploy_test.yml @@ -220,8 +220,13 @@ jobs: env: | TWINE_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }} - run: | - for cp in cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312 + run: | + if [ "${{ matrix.arch }}" = "aarch64" ]; then + export CPS="cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312" + else + export CPS="cp39-cp39 cp310-cp310 cp311-cp311" + fi + for cp in $CPS do /opt/python/${cp}/bin/python -m pip install --upgrade pip setuptools /opt/python/${cp}/bin/python -m pip install wheel numpy==`/opt/python/${cp}/bin/python .github/workflows/numpy_version.py` diff --git a/.github/workflows/pull_request_test.yml b/.github/workflows/pull_request_test.yml index 1603ce7..e38aaee 100644 --- a/.github/workflows/pull_request_test.yml +++ b/.github/workflows/pull_request_test.yml @@ -218,6 +218,7 @@ jobs: cp: [cp39-cp39, cp310-cp310, cp311-cp311, cp312-cp312] arch: [aarch64, ppc64le] + if: matrix.arch == 'aarch64' || matrix.cp != 'cp312-cp312' steps: - uses: actions/checkout@v2 with: