diff options
| author | John MacFarlane <[email protected]> | 2023-02-14 10:56:44 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2023-02-14 10:56:44 -0800 |
| commit | 0297f1d1808ba775a8a74ae06db2ef4fe014fc29 (patch) | |
| tree | 8239a55135d5882d488ed7a3f33d9c6c5274ed80 /.github | |
| parent | 077007894eb4010af2444960332e46ad725ec094 (diff) | |
CI: switch to using cabal on windows.
stack on windows has too many weird errors.
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/ci.yml | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e61c1fa14..29197abe4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -118,32 +118,26 @@ jobs: # declare/restore cached things - - name: Cache stack global package db - id: stack-global-package-db + - name: Cache cabal global package db + id: cabal-global uses: actions/cache@v3 with: path: | - C:\Users\runneradmin\AppData\Roaming\stack\ - key: ${{ runner.os }}-appdata-roaming-stack-${{ hashFiles('stack.yaml') }} + C:\Users\runneradmin\AppData\Roaming\cabal\ + key: ${{ runner.os }}-appdata-roaming-cabal-${{ hashFiles('cabal.project') }}-${{ secrets.CACHE_VERSION }} -# # stack's local package dbs for the project and each package -# - name: Cache .stack-work -# uses: actions/cache@v3 -# with: -# path: | -# .stack-work -# key: ${{ runner.os }}-stack-work-${{ hashFiles('stack.yaml') }}-${{ secrets.CACHE_VERSION }} -# restore-keys: ${{ runner.os }}-stack-work-${{ secrets.CACHE_VERSION }} + - name: Cache cabal work + id: cabal-local + uses: actions/cache@v3 + with: + path: | + dist-newstyle + key: ${{ runner.os }}-stack-work-${{ hashFiles('cabal.project') }}-${{ secrets.CACHE_VERSION }} - name: Install dependencies run: | - stack update - stack install happy - stack test --dependencies-only --fast - - name: Build and test - shell: cmd - run: | - stack test --fast --test-arguments="--hide-successes --ansi-tricks=false" + cabal update + cabal test ${{ matrix.versions.cabalopts }} --enable-tests --disable-optimization --ghc-options=-Werror all # We no longer run the macos tests, to make CI faster. # macos: |
