Skip to content

Commit 7e2613a

Browse files
authored
Include one Ubuntu 20.04 configuration (#1447)
PR #1403 accidentally removed our build coverage for an older Ubuntu LTS configuration. This patch adds in back and ensures that we don't accidentally run the tests on this configuration.
1 parent 94283f2 commit 7e2613a

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,21 @@ jobs:
6060
matrix:
6161
os: [ubuntu-22.04, macos-12, windows-2019]
6262
ghc-version: ["8.10.7", "9.0.2", "9.2.4"]
63+
run-tests: [true]
6364
exclude:
6465
- os: windows-2019
6566
ghc-version: 9.0.2
67+
run-tests: true
6668
- os: windows-2019
6769
ghc-version: 9.2.4
70+
run-tests: true
6871
include:
6972
# We include one job from an older Ubuntu LTS release to increase our
70-
# coverage of possible Linux configurations.
71-
- os: ubuntu-22.04
73+
# coverage of possible Linux configurations. Since we already run the
74+
# tests with the newest LTS release, we won't bother testing this one.
75+
- os: ubuntu-20.04
7276
ghc-version: 8.10.7
77+
run-tests: false
7378
outputs:
7479
test-lib-json: ${{ steps.test-lib.outputs.targets-json }}
7580
env:
@@ -211,13 +216,13 @@ jobs:
211216
if-no-files-found: error
212217
retention-days: ${{ needs.config.outputs.retention-days }}
213218

214-
- if: matrix.ghc-version == '8.10.7'
219+
- if: matrix.ghc-version == '8.10.7' && matrix.run-tests
215220
uses: actions/upload-artifact@v2
216221
with:
217222
path: dist/bin
218223
name: ${{ runner.os }}-dist-bin
219224

220-
- if: matrix.ghc-version == '8.10.7'
225+
- if: matrix.ghc-version == '8.10.7' && matrix.run-tests
221226
uses: actions/upload-artifact@v2
222227
with:
223228
path: bin

0 commit comments

Comments
 (0)