From 431979c2e017bc826a20dc2267d0fa8794803431 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 14 Feb 2023 12:49:27 -0800 Subject: CI: add linux-stack. --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to '.github/workflows') 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 -- cgit v1.2.3