Skip to content

Commit 9618777

Browse files
Build PyPI packages on ubuntu-22.04
1 parent 12b895e commit 9618777

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/publish_to_pypi.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ jobs:
4343
strategy:
4444
fail-fast: false
4545
matrix:
46-
os: [ubuntu-latest, macos-14]
46+
os: [ubuntu-22.04, macos-14]
4747
python-version: ['3.12', '3.13']
4848
include:
4949
- python-version: '3.12'
5050
pixi-environment: py312
5151
- python-version: '3.13'
5252
pixi-environment: py313
53-
- os: ubuntu-latest
53+
- os: ubuntu-22.04
5454
os-short: ubuntu
5555
- os: macos-14
5656
os-short: mac-arm64
@@ -110,7 +110,7 @@ jobs:
110110
run: pixi run -e ${{ matrix.pixi-environment }} build_pypi_wheel
111111

112112
- name: Repair CPU wheel (Linux only)
113-
if: steps.should_run.outputs.run == 'true' && matrix.os == 'ubuntu-latest'
113+
if: steps.should_run.outputs.run == 'true' && matrix.os == 'ubuntu-22.04'
114114
run: pixi run -e ${{ matrix.pixi-environment }} build_pypi_repair
115115

116116
- name: Print ccache stats
@@ -131,7 +131,7 @@ jobs:
131131
strategy:
132132
fail-fast: false
133133
matrix:
134-
os: [ubuntu-latest]
134+
os: [ubuntu-22.04]
135135
python-version: ['3.12', '3.13']
136136
include:
137137
- python-version: '3.12'
@@ -140,7 +140,7 @@ jobs:
140140
- python-version: '3.13'
141141
pixi-environment: py313-cuda129
142142
cuda-version: "12.9.0"
143-
- os: ubuntu-latest
143+
- os: ubuntu-22.04
144144
os-short: ubuntu
145145
env:
146146
FULL_CUDA_VERSION: ${{ matrix.cuda-version }}
@@ -167,7 +167,7 @@ jobs:
167167
shell: bash
168168

169169
- name: Free disk space
170-
if: steps.should_run.outputs.run == 'true' && matrix.os == 'ubuntu-latest'
170+
if: steps.should_run.outputs.run == 'true' && matrix.os == 'ubuntu-22.04'
171171
run: |
172172
echo "Before cleanup:"
173173
df -h
@@ -180,7 +180,7 @@ jobs:
180180
df -h
181181
182182
- name: Maximize build space (Ubuntu only)
183-
if: steps.should_run.outputs.run == 'true' && matrix.os == 'ubuntu-latest'
183+
if: steps.should_run.outputs.run == 'true' && matrix.os == 'ubuntu-22.04'
184184
uses: easimon/maximize-build-space@master
185185
with:
186186
root-reserve-mb: 30720
@@ -230,7 +230,7 @@ jobs:
230230
run: pixi run -e ${{ matrix.pixi-environment }} build_pypi_wheel
231231

232232
- name: Repair GPU wheel (Linux only)
233-
if: steps.should_run.outputs.run == 'true' && matrix.os == 'ubuntu-latest'
233+
if: steps.should_run.outputs.run == 'true' && matrix.os == 'ubuntu-22.04'
234234
run: pixi run -e ${{ matrix.pixi-environment }} build_pypi_repair
235235

236236
- name: Print ccache stats
@@ -248,7 +248,7 @@ jobs:
248248
publish_cpu:
249249
name: Publish pymomentum-cpu to PyPI
250250
needs: [build_cpu_wheels]
251-
runs-on: ubuntu-latest
251+
runs-on: ubuntu-22.04
252252
environment:
253253
name: pypi-cpu
254254
url: https://pypi.org/p/pymomentum-cpu
@@ -275,7 +275,7 @@ jobs:
275275
publish_gpu:
276276
name: Publish pymomentum-gpu to PyPI
277277
needs: [build_gpu_wheels]
278-
runs-on: ubuntu-latest
278+
runs-on: ubuntu-22.04
279279
environment:
280280
name: pypi-gpu
281281
url: https://pypi.org/p/pymomentum-gpu

0 commit comments

Comments
 (0)