From 0a9712c394110e33927b27d1195c2926b0fba1b0 Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Wed, 5 Feb 2025 23:00:11 +0800 Subject: [PATCH] chore(workflows/build): use ubuntu-22.04 Segfault caused by ubuntu-24.04 image update. Switch back to ubuntu-22.04. See also: - actions/runner-images#11471 --- .github/workflows/build.yml | 18 +++++++++--------- .github/workflows/tests-with-pydebug.yml | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b1177fae..2532b5a4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,7 @@ jobs: build-sdist: name: Build sdist if: github.repository == 'metaopt/optree' && (github.event_name != 'push' || startsWith(github.ref, 'refs/tags/')) - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 timeout-minutes: 15 steps: - name: Checkout @@ -90,7 +90,7 @@ jobs: needs: [build-sdist] strategy: matrix: - runner: [ubuntu-latest, windows-latest, macos-latest] + runner: [ubuntu-22.04, windows-latest, macos-latest] python-version: - "3.8" - "3.9" @@ -111,16 +111,16 @@ jobs: # Windows - "ARM64" exclude: - - runner: ubuntu-latest + - runner: ubuntu-22.04 python-version: "pypy-3.9" archs: "ppc64le" - - runner: ubuntu-latest + - runner: ubuntu-22.04 python-version: "pypy-3.10" archs: "ppc64le" - - runner: ubuntu-latest + - runner: ubuntu-22.04 python-version: "pypy-3.9" archs: "s390x" - - runner: ubuntu-latest + - runner: ubuntu-22.04 python-version: "pypy-3.10" archs: "s390x" - runner: windows-latest @@ -134,7 +134,7 @@ jobs: archs: "ARM64" # Exclude archs of other platforms - - runner: ubuntu-latest + - runner: ubuntu-22.04 archs: "ARM64" - runner: windows-latest archs: "aarch64" @@ -227,7 +227,7 @@ jobs: list-artifacts: name: List artifacts if: github.repository == 'metaopt/optree' && (github.event_name != 'push' || startsWith(github.ref, 'refs/tags/')) - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: [build-sdist, build-wheels] timeout-minutes: 15 steps: @@ -257,7 +257,7 @@ jobs: if-no-files-found: error publish: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: [list-artifacts] if: | github.repository == 'metaopt/optree' && github.event_name != 'pull_request' && diff --git a/.github/workflows/tests-with-pydebug.yml b/.github/workflows/tests-with-pydebug.yml index 211371fc..85c694da 100644 --- a/.github/workflows/tests-with-pydebug.yml +++ b/.github/workflows/tests-with-pydebug.yml @@ -68,7 +68,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Set up pyenv + - name: Set up pyenv (Unix) id: setup-pyenv-unix if: runner.os != 'Windows' run: | @@ -94,7 +94,7 @@ jobs: brew install --only-dependencies python@3 fi - - name: Set up pyenv + - name: Set up pyenv (Windows) id: setup-pyenv-windows if: runner.os == 'Windows' shell: pwsh