-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
155 additions
and
96 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
name: CI | ||
|
||
# Trigger the workflow on push or pull request, but only for the main branch | ||
on: | ||
pull_request: | ||
types: [synchronize, opened, reopened] | ||
push: | ||
branches: [main] | ||
schedule: | ||
# additionally run once per week (At 00:00 on Sunday) to maintain cache | ||
- cron: '0 0 * * 0' | ||
|
||
jobs: | ||
cabal: | ||
|
@@ -13,7 +16,7 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
cabal: ["2.4"] | ||
cabal: ["3.0"] | ||
ghc: | ||
- "8.4.4" | ||
- "8.6.5" | ||
|
@@ -34,31 +37,42 @@ jobs: | |
ghc: 8.4.4 | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/main' | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: haskell/actions/setup@v1 | ||
- uses: haskell/actions/setup@v1.2 | ||
id: setup-haskell-cabal | ||
name: Setup Haskell | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
cabal-version: ${{ matrix.cabal }} | ||
|
||
- name: Configure | ||
run: | | ||
cabal configure --enable-tests --enable-benchmarks --enable-documentation --test-show-details=direct --write-ghc-environment-files=always | ||
- name: Freeze | ||
run: | | ||
cabal v2-freeze | ||
cabal freeze | ||
- uses: actions/cache@v2.1.2 | ||
- uses: actions/cache@v2 | ||
name: Cache ~/.cabal/store | ||
with: | ||
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }} | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
cabal build all --only-dependencies | ||
- name: Build | ||
run: | | ||
cabal v2-configure --enable-tests --enable-benchmarks --test-show-details=direct | ||
cabal v2-build all | ||
cabal build all | ||
- name: Test | ||
run: | | ||
cabal v2-test all | ||
cabal test all | ||
- name: Documentation | ||
run: | | ||
cabal haddock | ||
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
name: CI | ||
|
||
# Trigger the workflow on push or pull request, but only for the main branch | ||
on: | ||
pull_request: | ||
types: [synchronize, opened, reopened] | ||
push: | ||
branches: [main] | ||
schedule: | ||
# additionally run once per week (At 00:00 on Sunday) to maintain cache | ||
- cron: '0 0 * * 0' | ||
|
||
jobs: | ||
cabal: | ||
|
@@ -13,7 +16,7 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
cabal: ["2.4"] | ||
cabal: ["3.0"] | ||
ghc: | ||
- "8.0.2" | ||
- "8.2.2" | ||
|
@@ -44,41 +47,52 @@ jobs: | |
ghc: 8.0.2 | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/main' | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: haskell/actions/setup@v1 | ||
- uses: haskell/actions/setup@v1.2 | ||
id: setup-haskell-cabal | ||
name: Setup Haskell | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
cabal-version: ${{ matrix.cabal }} | ||
|
||
- name: Configure | ||
run: | | ||
cabal configure --enable-tests --enable-benchmarks --enable-documentation --test-show-details=direct --write-ghc-environment-files=always | ||
- name: Freeze | ||
run: | | ||
cabal v2-freeze | ||
cabal freeze | ||
- uses: actions/cache@v2.1.2 | ||
- uses: actions/cache@v2 | ||
name: Cache ~/.cabal/store | ||
with: | ||
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }} | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
cabal build all --only-dependencies | ||
- name: Build | ||
run: | | ||
cabal v2-configure --enable-tests --enable-benchmarks --test-show-details=direct | ||
cabal v2-build all | ||
cabal build all | ||
- name: Test | ||
run: | | ||
cabal v2-test all | ||
cabal test all | ||
- name: Documentation | ||
run: | | ||
cabal haddock | ||
stack: | ||
name: stack / ghc ${{ matrix.ghc }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
stack: ["2.5.1"] | ||
stack: ["2.7.3"] | ||
ghc: | ||
- "8.0.2" | ||
- "8.2.2" | ||
|
@@ -88,16 +102,16 @@ jobs: | |
- "8.10.7" | ||
|
||
steps: | ||
- uses: actions/checkout@v2.3.3 | ||
- uses: actions/checkout@v2 | ||
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/main' | ||
|
||
- uses: haskell/actions/setup@v1 | ||
- uses: haskell/actions/setup@v1.2 | ||
name: Setup Haskell Stack | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
stack-version: ${{ matrix.stack }} | ||
|
||
- uses: actions/cache@v2.1.2 | ||
- uses: actions/cache@v2 | ||
name: Cache ~/.stack | ||
with: | ||
path: ~/.stack | ||
|
Oops, something went wrong.