diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index 90bfff8..71ec656 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -11,9 +11,9 @@ on: jobs: build_sdist: name: Build SDist - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 submodules: recursive @@ -25,7 +25,7 @@ jobs: run: pipx run build --sdist - name: Check metadata run: pipx run twine check dist/* - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: path: dist/*.tar.gz @@ -35,9 +35,9 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-22.04, macos-13, windows-latest] + os: [ubuntu-latest, macos-13, windows-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 submodules: recursive @@ -46,18 +46,18 @@ jobs: with: xcode-version: 'latest' - name: Update GCC - if: matrix.os == 'ubuntu-22.04' + if: matrix.os == 'ubuntu-latest' run: | sudo apt-get update sudo apt-get install -y g++-11 - - uses: pypa/cibuildwheel@v2.16.5 + - uses: pypa/cibuildwheel@v2.18.0 env: CIBW_ARCHS_MACOS: auto universal2 MACOSX_DEPLOYMENT_TARGET: "10.15" - name: Verify clean directory run: git diff --exit-code shell: bash - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: path: wheelhouse/*.whl @@ -67,10 +67,10 @@ jobs: runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags') steps: - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: "3.x" - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: artifact path: dist @@ -87,10 +87,10 @@ jobs: runs-on: ubuntu-latest if: (github.event_name == 'release' && github.event.action == 'published') || github.event_name == 'workflow_dispatch' steps: - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: "3.x" - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: artifact path: dist