Skip to content

Commit

Permalink
Merge pull request #51 from andreasabel/ci
Browse files Browse the repository at this point in the history
Fix and somewhat refurbish CI
  • Loading branch information
snoyberg authored Feb 23, 2025
2 parents b846761 + 2c4be45 commit 77a356f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Tests

on: [pull_request, push]
on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
Expand All @@ -9,18 +13,25 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
resolver: [nightly, lts-15, lts-14, lts-12, lts-11, lts-9]
os: [ubuntu-latest]
resolver: [nightly, lts-23, lts-22, lts-21, lts-20, lts-19, lts-18, lts-16, lts-14, lts-12]
include:
- os: macos-latest
resolver: nightly
- os: windows-latest
resolver: nightly

steps:
- name: Clone project
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v1
if: runner.os != 'Windows'
uses: actions/cache@v4
with:
# This path does not work under Windows:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles('stack.yaml') }}
key: ${{ runner.os }}-${{ matrix.resolver }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ matrix.resolver }}-
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
resolver: lts-14.17
resolver: lts-21.25

0 comments on commit 77a356f

Please sign in to comment.