From 6e5d32f35c97a80543368b0866aba44535c3daa3 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Sun, 22 Sep 2024 21:37:34 +0200 Subject: [PATCH] Fix GitHub Actions --- .github/workflows/CI.yml | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index b1787c2..700eb71 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -12,12 +12,12 @@ jobs: PYTHONUNBUFFERED: '1' steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: 'true' - name: Python environment - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' @@ -42,9 +42,9 @@ jobs: python tests/invalid.py - name: Upload wheels - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: wheels + name: wheels-windows path: dist macos: @@ -56,12 +56,12 @@ jobs: PYTHONUNBUFFERED: '1' steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: 'true' - name: Python environment - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' @@ -90,22 +90,22 @@ jobs: python tests/invalid.py - name: Upload wheels - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: wheels + name: wheels-macos path: dist linux: # Skip building pull requests from the same repository if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) }} - runs-on: ubuntu-latest - container: quay.io/pypa/manylinux2014_x86_64 + runs-on: ubuntu-24.04 + container: quay.io/pypa/manylinux_2_28_x86_64 env: # Disable output buffering in an attempt to get readable errors PYTHONUNBUFFERED: '1' steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: 'true' @@ -116,7 +116,7 @@ jobs: export PATH="$PATH:$HOME/.cargo/bin" export PATH="/opt/python/cp38-cp38/bin:$PATH" pip install -r requirements.txt - python setup.py bdist_wheel --py-limited-api=cp37 --plat-name manylinux2014_x86_64 + python setup.py bdist_wheel --py-limited-api=cp37 --plat-name manylinux_2_28_x86_64 auditwheel show dist/*.whl pip install --force-reinstall dist/*.whl python -c "import icicle" @@ -129,23 +129,24 @@ jobs: python tests/invalid.py - name: Upload wheels - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: wheels + name: wheels-linux path: dist release: if: ${{ startsWith(github.ref, 'refs/tags/') }} - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: [windows, macos, linux] permissions: contents: write discussions: write steps: - name: Download wheels - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: wheels + pattern: wheels-* + merge-multiple: true path: dist - name: Publish to PyPI