aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-02-14 12:49:27 -0800
committerJohn MacFarlane <[email protected]>2023-02-14 12:49:27 -0800
commit431979c2e017bc826a20dc2267d0fa8794803431 (patch)
tree00ea5d2142bf7c02a71358a9a52d6caace31fffe /.github
parent0297f1d1808ba775a8a74ae06db2ef4fe014fc29 (diff)
CI: add linux-stack.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 29197abe4..2b05828c0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -109,6 +109,39 @@ jobs:
run: |
cabal test ${{ matrix.versions.cabalopts }} --enable-tests --disable-optimization --ghc-options=-Werror all
+ linux-stack:
+
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: true
+ steps:
+ - uses: actions/checkout@v3
+
+ # needed by memory
+ - name: Install numa
+ run: sudo apt-get install libnuma-dev
+
+ # declare/restore cached things
+ - name: Cache stack global package db
+ id: stack-global
+ uses: actions/cache@v3
+ with:
+ path: |
+ ~/.stack
+ key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-stack-global-${{ secrets.CACHE_VERSION }}
+
+ - name: Cache stack work
+ id: stack-local
+ uses: actions/cache@v3
+ with:
+ path: |
+ .stack-work
+ key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-stack-local-${{ secrets.CACHE_VERSION }}
+
+ - name: Build and test
+ run: |
+ stack test --fast
+
windows:
runs-on: windows-2019