Skip to content

Commit

Permalink
chore(workflows/build): use ubuntu-22.04
Browse files Browse the repository at this point in the history
Segfault caused by ubuntu-24.04 image update. Switch back to ubuntu-22.04.

See also:

- actions/runner-images#11471
  • Loading branch information
XuehaiPan committed Feb 6, 2025
1 parent 7cc5237 commit 0a9712c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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' &&
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests-with-pydebug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit 0a9712c

Please sign in to comment.