From 188a579f492e19570c1c36df1a707070dcf07ae6 Mon Sep 17 00:00:00 2001 From: Nathan Dunfield Date: Tue, 3 Sep 2024 21:05:14 -0500 Subject: [PATCH] Try this approach --- .github/workflows/linux.yml | 37 --------------------- .github/workflows/macos.yml | 36 --------------------- .github/workflows/windows.yml | 61 ----------------------------------- 3 files changed, 134 deletions(-) delete mode 100644 .github/workflows/linux.yml delete mode 100644 .github/workflows/macos.yml delete mode 100644 .github/workflows/windows.yml diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml deleted file mode 100644 index acff177..0000000 --- a/.github/workflows/linux.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Linux Wheels - -on: [push, pull_request] - -jobs: - build_wheels: - name: Build wheels on ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-22.04] - - steps: - - uses: actions/checkout@v2 - - - uses: actions/setup-python@v2 - name: Install Python - with: - python-version: '3.10' - - - name: Install cibuildwheel - run: | - python3 -m pip install cibuildwheel - - - name: Build wheels - run: | - python3 -m cibuildwheel --output-dir wheelhouse - env: - CIBW_BUILD: cp38-manylinux_x86_64 cp39-manylinux_x86-64 cp310-manylinux_x86_64 cp311-manylinux_x86-64 cp312-manylinux_x86_64 - CIBW_BEFORE_BUILD: | - pip3 install cython>=3.0.0 - CIBW_REPAIR_WHEEL_COMMAND_LINUX: auditwheel repair --strip -w {dest_dir} {wheel} - CIBW_TEST_COMMAND: python -m cypari.test - - - uses: actions/upload-artifact@v2 - with: - path: ./wheelhouse/*.whl diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml deleted file mode 100644 index f49cf23..0000000 --- a/.github/workflows/macos.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: macOS Wheels - -on: [push, pull_request] - -jobs: - build_wheels: - name: Build wheels on ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [macos-13] - - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-python@v5 - name: Install Python - with: - python-version: '3.12' - - name: Install cibuildwheel - run: | - python -m pip install cibuildwheel - - - name: Build wheels - run: | - python3 -m cibuildwheel --output-dir wheelhouse - env: - CIBW_BUILD: cp38* cp39* cp310* cp311* cp312* - CIBW_ARCHS_MACOS: "x86_64 arm64 universal2" - CIBW_BEFORE_BUILD: | - pip install cython>=3.0.0 - CIBW_TEST_COMMAND: python -m cypari.test - - - uses: actions/upload-artifact@v2 - with: - path: ./wheelhouse/*.whl diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml deleted file mode 100644 index e13dc71..0000000 --- a/.github/workflows/windows.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: Windows wheels - -on: [push, pull_request] - -jobs: - build_wheels: - name: Build Windows wheels for 64 bit Python - runs-on: windows-latest - defaults: - run: - shell: msys2 {0} - - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-python@v5 - name: Install a Python to use for building - with: - python-version: '3.12' - - - uses: msys2/setup-msys2@v2 - name: Setup an msys2 environment - with: - msystem: UCRT64 - release: false - install: >- - base-devel - m4 - bison - make - patch - sed - pacboy: gcc:p - path-type: inherit - - - name: Expand the path for Visual Studio 2019 - run: | - echo "/c/Program Files (x86)/Windows Kits/10/bin/10.0.19041.0/x64" >> $GITHUB_PATH - - - name: Install cibuildwheel - run: | - python3 -m pip install cibuildwheel - - - name: Build gmp and pari - run: | - bash build_pari.sh pari64 gmp64 - - - name: Build many wheels - run: | - python3 -m cibuildwheel --output-dir wheelhouse - env: - CIBW_ARCHS: AMD64 - CIBW_BUILD: cp38* cp39* cp310* cp311* cp312* - CIBW_BEFORE_BUILD: | - pip install Cython>=3.0.0 - CIBW_TEST_COMMAND: python -m cypari.test - - - uses: actions/upload-artifact@v3 - name: Save the wheels as artifacts - with: - path: ./wheelhouse/*.whl