Skip to content

Commit cad4184

Browse files
authored
Merge pull request #817 from gdt/master
CI.yml: Drop old ocaml versions on all but ubuntu
2 parents f3f7972 + 6096d8e commit cad4184

File tree

1 file changed

+20
-32
lines changed

1 file changed

+20
-32
lines changed

.github/workflows/CI.yml

Lines changed: 20 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -47,32 +47,19 @@ jobs:
4747
matrix:
4848
job:
4949
- { os: macos-11 , ocaml-version: 4.14.0 }
50-
- { os: macos-10.15 , ocaml-version: 4.14.0 , publish: true }
51-
- { os: macos-10.15 , ocaml-version: 4.13.1 , publish: true }
52-
- { os: macos-10.15 , ocaml-version: 4.12.1 , publish: true }
53-
- { os: macos-10.15 , ocaml-version: 4.11.2 , publish: true }
54-
- { os: macos-10.15 , ocaml-version: 4.10.2 , publish: true }
55-
- { os: macos-10.15 , ocaml-version: 4.09.1 , publish: true }
56-
- { os: macos-10.15 , ocaml-version: 4.08.1 , publish: true }
50+
- { os: macos-10.15 , ocaml-version: 4.14.0 , publish: true }
5751
- { os: ubuntu-22.04 , ocaml-version: 4.14.0 }
5852
- { os: ubuntu-20.04 , ocaml-version: 4.14.0 }
59-
- { os: ubuntu-18.04 , ocaml-version: 4.14.0 , publish: true }
60-
- { os: ubuntu-18.04 , ocaml-version: 4.13.1 , publish: true }
61-
- { os: ubuntu-18.04 , ocaml-version: 4.12.1 , publish: true }
62-
- { os: ubuntu-18.04 , ocaml-version: 4.11.2 , publish: true }
63-
- { os: ubuntu-18.04 , ocaml-version: 4.10.2 , publish: true }
53+
- { os: ubuntu-18.04 , ocaml-version: 4.14.0 , publish: true }
54+
- { os: ubuntu-18.04 , ocaml-version: 4.13.1 }
55+
- { os: ubuntu-18.04 , ocaml-version: 4.12.1 }
56+
- { os: ubuntu-18.04 , ocaml-version: 4.11.2 }
57+
- { os: ubuntu-18.04 , ocaml-version: 4.10.2 }
6458
- { os: ubuntu-18.04 , ocaml-version: 4.10.2+musl+static+flambda , publish: true }
65-
- { os: ubuntu-18.04 , ocaml-version: 4.09.1 , publish: true }
66-
- { os: ubuntu-18.04 , ocaml-version: 4.08.1 , publish: true }
67-
- { os: windows-2022 , ocaml-version: 4.14.0+mingw64c }
68-
- { os: windows-2019 , ocaml-version: 4.14.0+mingw64c , publish: true }
69-
- { os: windows-2019 , ocaml-version: 4.13.1+mingw64c , publish: true }
70-
- { os: windows-2019 , ocaml-version: 4.12.1+mingw64c , publish: true }
71-
- { os: windows-2019 , ocaml-version: 4.11.2+mingw64c , publish: true }
72-
- { os: windows-2019 , ocaml-version: 4.10.2+mingw64c , publish: true }
73-
- { os: windows-2019 , ocaml-version: 4.10.2+mingw32c , publish: true }
74-
- { os: windows-2019 , ocaml-version: 4.09.1+mingw64c , publish: true }
75-
- { os: windows-2019 , ocaml-version: 4.08.1+mingw64c , publish: true }
59+
- { os: ubuntu-18.04 , ocaml-version: 4.09.1 }
60+
- { os: ubuntu-18.04 , ocaml-version: 4.08.1 , publish: true }
61+
- { os: windows-2022 , ocaml-version: 4.14.0+mingw64c , publish: true }
62+
- { os: windows-2019 , ocaml-version: 4.14.0+mingw32c , publish: true }
7663

7764
runs-on: ${{ matrix.job.os }}
7865

@@ -200,6 +187,9 @@ jobs:
200187
201188
- run: opam exec -- make test
202189

190+
## There is still code to run tests with old ocaml on Windows.
191+
## That remains intentionally so that someone could turn it on if
192+
## desired.
203193
- name: Run self-tests over RPC
204194
if: runner.os == 'Windows' && !contains(matrix.job.ocaml-version, '4.14')
205195
shell: bash
@@ -368,22 +358,19 @@ jobs:
368358
strategy:
369359
fail-fast: false
370360
matrix:
361+
# This list is intended to balance good enough coverage and
362+
# limited resource usage.
371363
job:
372364
- { os: ubuntu-18.04 , ocaml-version: 4.14.x , ref: v2.52.1 }
373-
- { os: ubuntu-18.04 , ocaml-version: 4.14.x , ref: v2.52.0 }
374365
- { os: ubuntu-18.04 , ocaml-version: 4.14.x , ref: v2.51.5 }
375366
- { os: ubuntu-18.04 , ocaml-version: 4.08.x , ref: v2.51.5 }
376367
- { os: ubuntu-18.04 , ocaml-version: 4.08.x , ref: v2.51.2 }
377368
- { os: ubuntu-18.04 , ocaml-version: 4.08.x , ref: 2.48.4 }
378369
- { os: windows-2019 , ocaml-version: ocaml-variants.4.14.0+mingw64c , ref: v2.52.1 }
379-
- { os: windows-2019 , ocaml-version: ocaml-variants.4.14.0+mingw64c , ref: v2.52.0 }
380-
- { os: windows-2019 , ocaml-version: ocaml-variants.4.14.0+mingw64c , ref: v2.51.5 }
381370
- { os: windows-2019 , ocaml-version: ocaml-variants.4.08.1+mingw32c , ref: v2.51.5 }
382371
- { os: windows-2019 , ocaml-version: ocaml-variants.4.08.1+mingw64c , ref: v2.51.2 }
383372
- { os: windows-2019 , ocaml-version: ocaml-variants.4.08.1+mingw64c , ref: 2.48.4 }
384373
- { os: macos-11 , ocaml-version: 4.14.x , ref: v2.52.1 }
385-
- { os: macos-11 , ocaml-version: 4.14.x , ref: v2.52.0 }
386-
- { os: macos-11 , ocaml-version: 4.14.x , ref: v2.51.5 }
387374
- { os: macos-10.15 , ocaml-version: 4.08.x , ref: v2.51.5 }
388375
- { os: macos-10.15 , ocaml-version: 4.08.x , ref: v2.51.2 }
389376
- { os: macos-10.15 , ocaml-version: 4.08.x , ref: 2.48.4 }
@@ -1041,16 +1028,17 @@ jobs:
10411028
_prev/src/unison -ui text -selftest testr_c socket://127.0.0.1:55443/testr_s -killserver
10421029
10431030
1031+
## We know the code is ok with various ocaml versions, so this is
1032+
## just checking the dune build process. Therefore build each OS
1033+
## family just once. Pick a different ocaml version because that's
1034+
## better coverage without adding a build.
10441035
opam_dune_build:
10451036
strategy:
10461037
fail-fast: false
10471038
matrix:
10481039
job:
1049-
- { os: ubuntu-18.04 , ocaml-compiler: 4.11.x }
1050-
- { os: ubuntu-20.04 , ocaml-compiler: 4.12.x }
10511040
- { os: ubuntu-22.04 , ocaml-compiler: 4.12.x }
1052-
- { os: macos-10.15 , ocaml-compiler: 4.11.x }
1053-
- { os: macos-11 , ocaml-compiler: 4.12.x }
1041+
- { os: macos-11 , ocaml-compiler: 4.11.x }
10541042

10551043
runs-on: ${{ matrix.job.os }}
10561044

0 commit comments

Comments
 (0)