diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6fa7b5ae..40cd3acb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,6 +37,15 @@ jobs: path: ~/.stack key: ${{ runner.os }}-${{ matrix.ghc }}-stack + - uses: actions/cache@v3 + name: Cache AppData/Local/Programs/stack + with: + path: ~/AppData/Local/Programs/stack + key: ${{ runner.os }}-${{ matrix.ghc }}-stack + + +# When editing this action, make sure it can run without using cached folders. +# Yes, it tries to install mingw-w64-x86_64-pcre twice - name: install pacman dependencies run: stack --system-ghc exec -- pacman -S --noconfirm pkgconf; @@ -52,12 +61,11 @@ jobs: run: | stack build --system-ghc --stack-yaml ${{ matrix.stackyaml }} --test --bench --no-run-tests --no-run-benchmarks --ghc-options '-Werror' --haddock --no-haddock-deps -# commented to cache .stack (golden tests are not passing yet) -# - name: stack test xrefcheck:xrefcheck-tests -# run: | -# stack test --system-ghc --stack-yaml ${{ matrix.stackyaml }} -# xrefcheck:xrefcheck-tests + - name: stack test xrefcheck:xrefcheck-tests + run: | + stack test --system-ghc --stack-yaml ${{ matrix.stackyaml }} xrefcheck:xrefcheck-tests +# golden tests are not passing yet # - uses: mig4/setup-bats@v1 # name: Setup bats # - name: Golden tests