Skip to content

Commit aac1897

Browse files
committed
chore(ci): pin os to older versions
To ensure that the wheels generated are compatible with as many devices as possible, I am pinning the operating systems of the runners to the oldest version currently supported. Signed-off-by: JP-Ellis <[email protected]>
1 parent a97a0ac commit aac1897

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
name: Build source distribution
2525

2626
if: github.event_name == 'push' || ! github.event.pull_request.draft
27-
runs-on: ubuntu-latest
27+
runs-on: ubuntu-20.04
2828

2929
steps:
3030
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
@@ -62,11 +62,11 @@ jobs:
6262
fail-fast: false
6363
matrix:
6464
include:
65-
- os: ubuntu-latest
65+
- os: ubuntu-20.04
6666
archs: x86_64
67-
- os: macos-latest
67+
- os: macos-12
6868
archs: x86_64
69-
- os: windows-latest
69+
- os: windows-2019
7070
archs: AMD64
7171

7272
steps:
@@ -123,13 +123,13 @@ jobs:
123123
fail-fast: false
124124
matrix:
125125
include:
126-
- os: ubuntu-latest
126+
- os: ubuntu-20.04
127127
archs: aarch64
128128
build: manylinux
129-
- os: ubuntu-latest
129+
- os: ubuntu-20.04
130130
archs: aarch64
131131
build: musllinux
132-
- os: macos-latest
132+
- os: macos-12
133133
archs: arm64
134134
build: ""
135135

@@ -150,7 +150,7 @@ jobs:
150150
${{ github.workflow }}
151151
152152
- name: Set up QEMU
153-
if: matrix.os == 'ubuntu-latest'
153+
if: startsWith(matrix.os, 'ubuntu-')
154154
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3
155155
with:
156156
platforms: arm64
@@ -173,7 +173,7 @@ jobs:
173173
name: Publish wheels and sdist
174174

175175
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
176-
runs-on: ubuntu-latest
176+
runs-on: ubuntu-20.04
177177
environment: pypi
178178

179179
needs:

0 commit comments

Comments
 (0)