Skip to content

Merge pull request #182 from smucclaw/stack-lts-22.24 #190

Merge pull request #182 from smucclaw/stack-lts-22.24

Merge pull request #182 from smucclaw/stack-lts-22.24 #190

name: Build and run tests
on:
push:
# pull_request: # Don't run twice
jobs:
flakes-simple:
strategy:
matrix:
os: [ubuntu-22.04, macos-14, macos-13]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
with:
enable-stack: true
ghc-version: '9.10.1'
cabal-version: '3.10.3.0'
stack-version: '2.15.7'
- uses: actions/cache@v4
name: Cache ~/.stack
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-stack-${{ hashFiles('stack.yaml.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-stack
# - name: Install libcurl on Ubuntu
# if: startsWith(matrix.os, 'ubuntu')
# run: sudo apt-get install libcurl4-openssl-dev
# - name: Install libcurl on macos
# if: startsWith(matrix.os, 'macOS')
# run: brew install openssl && brew install curl && export PATH="/opt/homebrew/opt/curl/bin:$PATH"'
- name: Build and test baby-l4
run: stack test