Skip to content

Commit 0921cb6

Browse files
authored
ci: fix linux build with ubuntu 22.04 (#88)
Signed-off-by: Michele Dolfi <[email protected]>
1 parent 8760235 commit 0921cb6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/cd.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
code-checks:
1212
uses: ./.github/workflows/checks.yml
1313
pre-release-check:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-22.04
1515
outputs:
1616
TARGET_TAG_V: ${{ steps.version_check.outputs.TRGT_VERSION }}
1717
steps:
@@ -31,7 +31,7 @@ jobs:
3131
needs: [code-checks, pre-release-check]
3232
if: needs.pre-release-check.outputs.TARGET_TAG_V != ''
3333
environment: auto-release
34-
runs-on: ubuntu-latest
34+
runs-on: ubuntu-22.04
3535
concurrency: release
3636
steps:
3737
- uses: actions/create-github-app-token@v1

.github/workflows/checks.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ env:
66

77
jobs:
88
run-checks:
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-22.04
1010
strategy:
1111
matrix:
1212
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']

.github/workflows/wheels.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212
jobs:
1313
build_sdist:
1414
name: Build sdist artifacts
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-22.04
1616

1717
steps:
1818
- name: Checkout
@@ -44,7 +44,7 @@ jobs:
4444
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
4545

4646
os:
47-
- name: "ubuntu-latest"
47+
- name: "ubuntu-22.04"
4848
platform: "linux"
4949
platform_id: "manylinux_x86_64"
5050

@@ -202,13 +202,13 @@ jobs:
202202
cp wheelhouse/*.whl ./dist/
203203
204204
- name: Set up QEMU [linux]
205-
if: matrix.os.name == 'ubuntu-latest'
205+
if: startsWith(matrix.os.name, 'ubuntu')
206206
uses: docker/setup-qemu-action@v3
207207
with:
208208
platforms: all
209209

210210
- name: Build wheels [linux]
211-
if: matrix.os.name == 'ubuntu-latest'
211+
if: startsWith(matrix.os.name, 'ubuntu')
212212
env:
213213
# CIBW_BUILD: ${{ env.python_cp_version }}-${{ matrix.os.platform_id }}
214214
CIBW_ARCHS: auto x86_64 aarch64

0 commit comments

Comments
 (0)