aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2022-09-27 10:05:25 -0700
committerJohn MacFarlane <[email protected]>2022-09-27 10:05:25 -0700
commit3162f111efcaa2d1c045e7b50987faba09befed3 (patch)
tree9da2b2d987671100b484fe4d512dafa86ee3beb6 /.github
parente6db2780613ccc102bd14f455463455c8fc3767d (diff)
CI: remove macos tests.
These take much longer than the others and slow down CI, but there are almost never issues on macos that wouldn't show on linux.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml93
1 files changed, 47 insertions, 46 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5ab6ecd04..a21f11222 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -144,50 +144,51 @@ jobs:
run: |
stack test --fast --test-arguments="--hide-successes --ansi-tricks=false"
- macos:
-
- runs-on: macos-11
- strategy:
- fail-fast: true
- matrix:
- versions:
- - ghc: '8.8.4'
- cabal: '3.2'
-
- steps:
- - uses: actions/checkout@v3
-
- - name: Install cabal/ghc
- run: |
- ghcup install ghc --set ${{ matrix.versions.ghc }}
- ghcup install cabal ${{ matrix.versions.cabal }}
-
- # declare/restore cached things
-
- - name: Cache cabal global package db
- id: cabal-global
- uses: actions/cache@v3
- with:
- path: |
- ~/.cabal
- key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-global-${{ secrets.CACHE_VERSION }}
-
- - name: Cache cabal work
- id: cabal-local
- uses: actions/cache@v3
- with:
- path: |
- dist-newstyle
- key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-local-${{ secrets.CACHE_VERSION }}
-
- - name: Install dependencies
- run: |
- cabal v2-update
- cabal v2-build --dependencies-only --enable-tests --disable-optimization
- - name: Build and test
- run: |
- cabal v2-build --enable-tests --disable-optimization 2>&1 | tee build.log
- # fail if warnings in local build
- ! grep -q ": *[Ww]arning:" build.log || exit 1
- cabal v2-test --disable-optimization --test-option=--hide-successes --test-option=--ansi-tricks=false
+# We no longer run the macos tests, to make CI faster.
+# macos:
+
+# runs-on: macos-11
+# strategy:
+# fail-fast: true
+# matrix:
+# versions:
+# - ghc: '8.8.4'
+# cabal: '3.2'
+
+# steps:
+# - uses: actions/checkout@v3
+
+# - name: Install cabal/ghc
+# run: |
+# ghcup install ghc --set ${{ matrix.versions.ghc }}
+# ghcup install cabal ${{ matrix.versions.cabal }}
+
+# # declare/restore cached things
+
+# - name: Cache cabal global package db
+# id: cabal-global
+# uses: actions/cache@v3
+# with:
+# path: |
+# ~/.cabal
+# key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-global-${{ secrets.CACHE_VERSION }}
+
+# - name: Cache cabal work
+# id: cabal-local
+# uses: actions/cache@v3
+# with:
+# path: |
+# dist-newstyle
+# key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-local-${{ secrets.CACHE_VERSION }}
+
+# - name: Install dependencies
+# run: |
+# cabal v2-update
+# cabal v2-build --dependencies-only --enable-tests --disable-optimization
+# - name: Build and test
+# run: |
+# cabal v2-build --enable-tests --disable-optimization 2>&1 | tee build.log
+# # fail if warnings in local build
+# ! grep -q ": *[Ww]arning:" build.log || exit 1
+# cabal v2-test --disable-optimization --test-option=--hide-successes --test-option=--ansi-tricks=false