Skip to content

Commit ce12fc3

Browse files
authored
Merge pull request #347 from Chia-Network/EL.workflow-updates
Use GH naming for linux arm and simplify some non-matrix jobs
2 parents c49b57d + b4aea9c commit ce12fc3

4 files changed

Lines changed: 29 additions & 74 deletions

File tree

.github/workflows/build-c-libraries.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ jobs:
3030
- name: macOS
3131
matrix: macos
3232
runs-on:
33-
arm: [macos-15]
34-
intel: [macos-15-intel]
33+
arm: macos-15
34+
intel: macos-15-intel
3535
- name: Ubuntu
3636
matrix: ubuntu
3737
runs-on:
38-
arm: [Linux, ARM64]
39-
intel: [ubuntu-latest]
38+
arm: ubuntu-24.04-arm
39+
intel: ubuntu-latest
4040
- name: Windows
4141
matrix: windows
4242
runs-on:
43-
intel: [windows-latest]
43+
intel: windows-latest
4444
arch:
4545
- name: ARM
4646
matrix: arm
@@ -55,7 +55,7 @@ jobs:
5555
name: Windows
5656
matrix: windows
5757
runs-on:
58-
intel: [windows-latest]
58+
intel: windows-latest
5959
arch:
6060
name: ARM
6161
matrix: arm

.github/workflows/build-riscv64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Linux
3131
matrix: linux
3232
emoji: 🐧
33-
runs-on: [ubuntu-latest]
33+
runs-on: ubuntu-latest
3434
python:
3535
- major-dot-minor: '3.10'
3636
matrix: '3.10'

.github/workflows/build.yml

Lines changed: 16 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,20 @@ jobs:
3030
- name: macOS
3131
matrix: macos
3232
runs-on:
33-
arm: [macos-15]
34-
intel: [macos-15-intel]
33+
arm: macos-15
34+
intel: macos-15-intel
3535
cibw-archs-macos:
3636
arm: arm64
3737
intel: x86_64
3838
- name: Ubuntu
3939
matrix: ubuntu
4040
runs-on:
41-
arm: [Linux, ARM64]
42-
intel: [ubuntu-latest]
41+
arm: ubuntu-24.04-arm
42+
intel: ubuntu-latest
4343
- name: Windows
4444
matrix: windows
4545
runs-on:
46-
intel: [windows-latest]
46+
intel: windows-latest
4747
python:
4848
- major-dot-minor: '3.10'
4949
cibw-build: 'cp310-*'
@@ -84,7 +84,7 @@ jobs:
8484
name: Windows
8585
matrix: windows
8686
runs-on:
87-
intel: [windows-latest]
87+
intel: windows-latest
8888
arch:
8989
name: ARM
9090
matrix: arm
@@ -153,23 +153,8 @@ jobs:
153153
path: ./dist
154154

155155
build-sdist:
156-
name: sdist - ${{ matrix.os.name }} ${{ matrix.python.major-dot-minor }} ${{ matrix.arch.name }}
157-
runs-on: ${{ matrix.os.runs-on[matrix.arch.matrix] }}
158-
strategy:
159-
fail-fast: false
160-
matrix:
161-
os:
162-
- name: Ubuntu
163-
matrix: ubuntu
164-
runs-on:
165-
arm: [Linux, ARM64]
166-
intel: [ubuntu-latest]
167-
python:
168-
- major-dot-minor: '3.12'
169-
matrix: '3.12'
170-
arch:
171-
- name: Intel
172-
matrix: intel
156+
name: sdist - Ubuntu 3.12 Intel
157+
runs-on: ubuntu-latest
173158

174159
steps:
175160
- name: Clean workspace
@@ -182,7 +167,7 @@ jobs:
182167

183168
- uses: Chia-Network/actions/setup-python@main
184169
with:
185-
python-version: ${{ matrix.python.major-dot-minor }}
170+
python-version: '3.12'
186171

187172
- name: Build source distribution
188173
run: |
@@ -192,27 +177,12 @@ jobs:
192177
- name: Upload artifacts
193178
uses: actions/upload-artifact@v7
194179
with:
195-
name: packages-sdist-${{ matrix.os.name }}-${{ matrix.python.major-dot-minor }}-${{ matrix.arch.name }}
180+
name: packages-sdist-Ubuntu-3.12-Intel
196181
path: ./dist
197182

198183
check:
199-
name: Check - ${{ matrix.os.name }} ${{ matrix.python.major-dot-minor }} ${{ matrix.arch.name }}
200-
runs-on: ${{ matrix.os.runs-on[matrix.arch.matrix] }}
201-
strategy:
202-
fail-fast: false
203-
matrix:
204-
os:
205-
- name: Ubuntu
206-
matrix: ubuntu
207-
runs-on:
208-
arm: [Linux, ARM64]
209-
intel: [ubuntu-latest]
210-
python:
211-
- major-dot-minor: '3.12'
212-
matrix: '3.12'
213-
arch:
214-
- name: Intel
215-
matrix: intel
184+
name: Check - Ubuntu 3.12 Intel
185+
runs-on: ubuntu-latest
216186

217187
steps:
218188
- name: Clean workspace
@@ -225,7 +195,7 @@ jobs:
225195

226196
- uses: Chia-Network/actions/setup-python@main
227197
with:
228-
python-version: ${{ matrix.python.major-dot-minor }}
198+
python-version: '3.12'
229199

230200
- name: flake8
231201
run: |
@@ -238,27 +208,12 @@ jobs:
238208
mypy --config-file mypi.ini setup.py tests
239209
240210
upload:
241-
name: Upload to PyPI - ${{ matrix.os.name }} ${{ matrix.python.major-dot-minor }} ${{ matrix.arch.name }}
242-
runs-on: ${{ matrix.os.runs-on[matrix.arch.matrix] }}
211+
name: Upload to PyPI - Ubuntu 3.12 Intel
212+
runs-on: ubuntu-latest
243213
needs:
244214
- build-wheels
245215
- build-sdist
246216
- check
247-
strategy:
248-
fail-fast: false
249-
matrix:
250-
os:
251-
- name: Ubuntu
252-
matrix: ubuntu
253-
runs-on:
254-
arm: [Linux, ARM64]
255-
intel: [ubuntu-latest]
256-
python:
257-
- major-dot-minor: '3.12'
258-
matrix: '3.12'
259-
arch:
260-
- name: Intel
261-
matrix: intel
262217

263218
steps:
264219
- name: Clean workspace
@@ -276,7 +231,7 @@ jobs:
276231

277232
- uses: Chia-Network/actions/setup-python@main
278233
with:
279-
python-version: ${{ matrix.python.major-dot-minor }}
234+
python-version: '3.12'
280235

281236
- name: Download artifacts
282237
uses: actions/download-artifact@v8

.github/workflows/rust.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,20 +86,20 @@ jobs:
8686
- name: macOS
8787
matrix: macos
8888
runs-on:
89-
arm: [macos-15]
90-
intel: [macos-15-intel]
89+
arm: macos-15
90+
intel: macos-15-intel
9191
cibw-archs-macos:
9292
arm: arm64
9393
intel: x86_64
9494
- name: Ubuntu
9595
matrix: ubuntu
9696
runs-on:
97-
arm: [Linux, ARM64]
98-
intel: [ubuntu-latest]
97+
arm: ubuntu-24.04-arm
98+
intel: ubuntu-latest
9999
- name: Windows
100100
matrix: windows
101101
runs-on:
102-
intel: [windows-latest]
102+
intel: windows-latest
103103

104104
arch:
105105
- name: ARM
@@ -112,7 +112,7 @@ jobs:
112112
name: Windows
113113
matrix: windows
114114
runs-on:
115-
intel: [windows-latest]
115+
intel: windows-latest
116116
arch:
117117
name: ARM
118118
matrix: arm

0 commit comments

Comments
 (0)