-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
1 parent
b4342aa
commit 33a3982
Showing
18 changed files
with
82 additions
and
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,11 @@ on: | |
|
||
jobs: | ||
build: | ||
name: ghc ${{ matrix.ghc }} | ||
runs-on: ubuntu-16.04 | ||
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-16.04] | ||
cabal: ["3.0"] | ||
ghc: | ||
- "8.4.4" | ||
|
@@ -23,48 +24,53 @@ jobs: | |
- uses: actions/checkout@v2 | ||
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master' | ||
|
||
- uses: actions/setup-haskell@v1 | ||
- uses: actions/[email protected] | ||
id: setup-haskell-cabal | ||
name: Setup Haskell | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
cabal-version: ${{ matrix.cabal }} | ||
|
||
- name: Freeze | ||
run: | | ||
cabal freeze | ||
- uses: actions/cache@v1 | ||
name: Cache ~/.cabal/store | ||
with: | ||
path: ~/.cabal/store | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal | ||
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }} | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }} | ||
|
||
- name: Build | ||
run: | | ||
cabal v2-update | ||
cabal v2-build all --enable-tests --enable-benchmarks | ||
cabal configure --enable-tests --enable-benchmarks --test-show-details=direct | ||
cabal build all | ||
- name: Unit and property tests | ||
run: | | ||
cabal v2-test all --enable-tests --test-show-details=direct | ||
cabal test all | ||
- if: matrix.ghc == '8.10.1' | ||
name: Build 'cabal-minimal' | ||
run: | | ||
cd "summoner-cli/examples/cabal-minimal/" | ||
echo "packages: ." > cabal.project | ||
cabal v2-build all | ||
cabal build all | ||
- name: Build 'cabal-full' | ||
run: | | ||
cd "summoner-cli/examples/cabal-full/" | ||
echo "packages: ." > cabal.project | ||
cabal v2-build all | ||
cabal build all | ||
- name: Build 'stack-full' | ||
run: | | ||
cd "summoner-cli/examples/stack-full/" | ||
echo "packages: ." > cabal.project | ||
cabal v2-build all | ||
cabal build all | ||
- name: Build 'full-batteries' | ||
run: | | ||
cd "summoner-cli/examples/full-batteries/" | ||
echo "packages: ." > cabal.project | ||
cabal v2-build all | ||
cabal build all |
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
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
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ language: haskell | |
git: | ||
depth: 5 | ||
|
||
cabal: "2.4" | ||
cabal: "3.0" | ||
|
||
cache: | ||
directories: | ||
|
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
Oops, something went wrong.