Skip to content

Commit 5f8512f

Browse files
committed
Build more versions in CI (compatibility with older OSes)
1 parent 6c61664 commit 5f8512f

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

.github/workflows/cmake.yml

+22-22
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
runs-on: [ubuntu-latest, macos-latest, windows-latest]
13+
runs-on: [ubuntu-20.04, ubuntu-latest, macos-11, macos-latest, windows-latest]
1414
build-type: [Release]
1515
runs-on: ${{matrix.runs-on}}
1616
steps:
@@ -87,7 +87,7 @@ jobs:
8787
- name: Upload LLVM
8888
uses: actions/upload-artifact@v3
8989
with:
90-
name: LLVM${{runner.os}}${{matrix.build-type}}
90+
name: LLVM${{matrix.runs-on}}${{matrix.build-type}}
9191
path: llvm
9292

9393
- name: Install ez80-link
@@ -98,7 +98,7 @@ jobs:
9898
- name: Upload ez80-link
9999
uses: actions/upload-artifact@v3
100100
with:
101-
name: ez80-link${{env.EXE}}-${{runner.os}}${{matrix.build-type}}
101+
name: ez80-link${{env.EXE}}-${{matrix.runs-on}}${{matrix.build-type}}
102102
path: ez80-link${{env.EXE}}
103103

104104
- name: Install ez80-lto
@@ -109,7 +109,7 @@ jobs:
109109
- name: Upload ez80-lto
110110
uses: actions/upload-artifact@v3
111111
with:
112-
name: ez80-lto${{env.EXE}}-${{runner.os}}${{matrix.build-type}}
112+
name: ez80-lto${{env.EXE}}-${{matrix.runs-on}}${{matrix.build-type}}
113113
path: ez80-lto${{env.EXE}}
114114

115115
- name: Install ez80-lto2
@@ -120,7 +120,7 @@ jobs:
120120
- name: Upload ez80-lto2
121121
uses: actions/upload-artifact@v3
122122
with:
123-
name: ez80-lto2${{env.EXE}}-${{runner.os}}${{matrix.build-type}}
123+
name: ez80-lto2${{env.EXE}}-${{matrix.runs-on}}${{matrix.build-type}}
124124
path: ez80-lto2${{env.EXE}}
125125

126126
- name: Configure Test
@@ -140,7 +140,7 @@ jobs:
140140
- name: Upload Test
141141
uses: actions/upload-artifact@v3
142142
with:
143-
name: Test${{runner.os}}${{matrix.build-type}}
143+
name: Test${{matrix.runs-on}}${{matrix.build-type}}
144144
path: test
145145

146146
- name: Disk Usage
@@ -155,7 +155,7 @@ jobs:
155155
strategy:
156156
fail-fast: false
157157
matrix:
158-
runs-on: [ubuntu-latest, macos-latest, windows-latest]
158+
runs-on: [ubuntu-20.04, ubuntu-latest, macos-11, macos-latest, windows-latest]
159159
build-type: [Release]
160160
runs-on: ${{matrix.runs-on}}
161161
steps:
@@ -222,7 +222,7 @@ jobs:
222222
- name: Download LLVM
223223
uses: actions/download-artifact@v3
224224
with:
225-
name: LLVM${{runner.os}}${{matrix.build-type}}
225+
name: LLVM${{matrix.runs-on}}${{matrix.build-type}}
226226
path: llvm
227227
- name: Set Executable
228228
if: runner.os != 'Windows'
@@ -239,7 +239,7 @@ jobs:
239239
- name: Upload Clang
240240
uses: actions/upload-artifact@v3
241241
with:
242-
name: Clang${{runner.os}}${{matrix.build-type}}
242+
name: Clang${{matrix.runs-on}}${{matrix.build-type}}
243243
path: clang
244244

245245
- name: Install ez80-clang
@@ -252,20 +252,20 @@ jobs:
252252
- name: Upload ez80-clang
253253
uses: actions/upload-artifact@v3
254254
with:
255-
name: ez80-clang${{env.EXE}}-${{runner.os}}${{matrix.build-type}}
255+
name: ez80-clang${{env.EXE}}-${{matrix.runs-on}}${{matrix.build-type}}
256256
path: ez80-clang${{env.EXE}}
257257

258258
- name: Download Test
259259
uses: actions/download-artifact@v3
260260
with:
261-
name: Test${{runner.os}}${{matrix.build-type}}
261+
name: Test${{matrix.runs-on}}${{matrix.build-type}}
262262
path: test
263263
- name: Install Test
264264
run: cmake -E copy build/bin/arcmt-test${{env.EXE}} build/bin/c-arcmt-test${{env.EXE}} build/bin/clang-diff${{env.EXE}} build/bin/clang-tblgen${{env.EXE}} test/bin
265265
- name: Upload Test
266266
uses: actions/upload-artifact@v3
267267
with:
268-
name: Test${{runner.os}}${{matrix.build-type}}
268+
name: Test${{matrix.runs-on}}${{matrix.build-type}}
269269
path: test
270270

271271
- name: Disk Usage
@@ -280,7 +280,7 @@ jobs:
280280
strategy:
281281
fail-fast: false
282282
matrix:
283-
runs-on: [ubuntu-latest, macos-latest, windows-latest]
283+
runs-on: [ubuntu-20.04, ubuntu-latest, macos-11, macos-latest, windows-latest]
284284
build-type: [Release]
285285
runs-on: ${{matrix.runs-on}}
286286
steps:
@@ -311,12 +311,12 @@ jobs:
311311
- name: Download Test
312312
uses: actions/download-artifact@v3
313313
with:
314-
name: Test${{runner.os}}${{matrix.build-type}}
314+
name: Test${{matrix.runs-on}}${{matrix.build-type}}
315315
path: build
316316
- name: Download LLVM
317317
uses: actions/download-artifact@v3
318318
with:
319-
name: LLVM${{runner.os}}${{matrix.build-type}}
319+
name: LLVM${{matrix.runs-on}}${{matrix.build-type}}
320320
path: build
321321
- name: Set Executable
322322
if: runner.os != 'Windows'
@@ -332,7 +332,7 @@ jobs:
332332
strategy:
333333
fail-fast: false
334334
matrix:
335-
runs-on: [ubuntu-latest, macos-latest, windows-latest]
335+
runs-on: [ubuntu-20.04, ubuntu-latest, macos-11, macos-latest, windows-latest]
336336
build-type: [Debug]
337337
continue-on-error: true
338338
if: false
@@ -363,12 +363,12 @@ jobs:
363363
- name: Download Test
364364
uses: actions/download-artifact@v3
365365
with:
366-
name: Test${{runner.os}}${{matrix.build-type}}
366+
name: Test${{matrix.runs-on}}${{matrix.build-type}}
367367
path: build
368368
- name: Download LLVM
369369
uses: actions/download-artifact@v3
370370
with:
371-
name: LLVM${{runner.os}}${{matrix.build-type}}
371+
name: LLVM${{matrix.runs-on}}${{matrix.build-type}}
372372
path: build
373373
- name: Set Executable
374374
if: runner.os != 'Windows'
@@ -382,7 +382,7 @@ jobs:
382382
strategy:
383383
fail-fast: false
384384
matrix:
385-
runs-on: [ubuntu-latest, macos-latest, windows-latest]
385+
runs-on: [ubuntu-20.04, ubuntu-latest, macos-11, macos-latest, windows-latest]
386386
build-type: [Debug]
387387
continue-on-error: true
388388
if: false
@@ -413,17 +413,17 @@ jobs:
413413
- name: Download Test
414414
uses: actions/download-artifact@v3
415415
with:
416-
name: Test${{runner.os}}${{matrix.build-type}}
416+
name: Test${{matrix.runs-on}}${{matrix.build-type}}
417417
path: build
418418
- name: Download LLVM
419419
uses: actions/download-artifact@v3
420420
with:
421-
name: LLVM${{runner.os}}${{matrix.build-type}}
421+
name: LLVM${{matrix.runs-on}}${{matrix.build-type}}
422422
path: build
423423
- name: Download Clang
424424
uses: actions/download-artifact@v3
425425
with:
426-
name: Clang${{runner.os}}${{matrix.build-type}}
426+
name: Clang${{matrix.runs-on}}${{matrix.build-type}}
427427
path: build
428428
- name: Set Executable
429429
if: runner.os != 'Windows'

0 commit comments

Comments
 (0)