Skip to content

Commit

Permalink
use haskell-actions for stack setup in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlix committed May 26, 2024
1 parent 3f02fec commit 023a3f7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
stack: "latest"
args:
- "--resolver nightly --stack-yaml stack-nightly.yaml"
- "--resolver lts-22"
Expand All @@ -26,6 +27,12 @@ jobs:
- name: Clone project
uses: actions/checkout@v4

- uses: haskell-actions/setup@v2
name: Setup Haskell Stack
with:
stack-version: ${{ matrix.stack }}
enable-stack: true

# Getting weird OS X errors...
# - name: Cache dependencies
# uses: actions/cache@v1
Expand All @@ -39,8 +46,6 @@ jobs:
shell: bash
run: |
set -ex
stack upgrade
stack --version
EXTRA=""
if [[ ${{ matrix.os }} = "windows-latest" ]]
then
Expand Down

0 comments on commit 023a3f7

Please sign in to comment.