no joy #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cabal | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
name: ghc ${{ matrix.ghc }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
cabal: ["3.6"] | |
ghc: | |
- "9.2.5" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Setup z3 | |
uses: pavpanchekha/[email protected] | |
with: | |
version: "4.8.7" | |
- name: Setup GHC and cabal-install | |
uses: haskell/actions/setup@v2 | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
cabal-version: ${{ matrix.cabal }} | |
- name: Cache ~/.cabal/packages, ~/.cabal/store and dist-newstyle | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cabal/packages | |
~/.cabal/store | |
dist-newstyle | |
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal-${{ hashFiles('**/*.cabal', '**/cabal.project', '**/cabal.project.freeze') }} | |
- name: Update package list | |
run: cabal update | |
- name: Build | |
run: cabal build all |