diff --git a/.github/workflows/stack-based-build.yaml b/.github/workflows/stack-based-build.yaml index 5795349..ddccd08 100755 --- a/.github/workflows/stack-based-build.yaml +++ b/.github/workflows/stack-based-build.yaml @@ -1,21 +1,23 @@ name: Build and run tests + on: + pull_request: + branches: [ main ] push: - # pull_request: # Don't run twice + branches: [ main ] + jobs: flakes-simple: strategy: matrix: - os: [ubuntu-22.04, macos-14, macos-13] + os: [ubuntu-latest, macos-latest] 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