-
-
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.
Browse files
Browse the repository at this point in the history
* [#540] Build Summoner with 9.0 Resolves #540 * Fix Stack * Fix * Brick is fixed * Build examples on all OSes Co-authored-by: Dmitrii Kovanikov <kovanikov@gmail.com>
- Loading branch information
Showing
8 changed files
with
112 additions
and
149 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 |
---|---|---|
@@ -1,70 +1,143 @@ | ||
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: | ||
build: | ||
name: ghc ${{ matrix.ghc }} | ||
runs-on: ubuntu-16.04 | ||
cabal: | ||
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
cabal: ["3.2"] | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
cabal: ["3.4"] | ||
ghc: | ||
- "8.4.4" | ||
- "8.6.5" | ||
- "8.8.4" | ||
- "8.10.3" | ||
- "8.10.4" | ||
- "9.0.1" | ||
exclude: | ||
- os: macOS-latest | ||
ghc: 8.10.4 | ||
- os: macOS-latest | ||
ghc: 8.8.4 | ||
- os: macOS-latest | ||
ghc: 8.6.5 | ||
- os: macOS-latest | ||
ghc: 8.4.4 | ||
|
||
- os: windows-latest | ||
ghc: 8.10.4 | ||
- os: windows-latest | ||
ghc: 8.8.4 | ||
- os: windows-latest | ||
ghc: 8.6.5 | ||
- os: windows-latest | ||
ghc: 8.4.4 | ||
|
||
steps: | ||
- uses: actions/checkout@v2.3.3 | ||
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/main' | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: haskell/actions/setup@v1 | ||
id: setup-haskell-cabal | ||
name: Setup Haskell | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
cabal-version: ${{ matrix.cabal }} | ||
|
||
- uses: actions/cache@v2.1.2 | ||
- name: Configure | ||
run: | | ||
cabal configure --enable-tests --enable-benchmarks --test-show-details=direct --write-ghc-environment-files=always | ||
- name: Freeze | ||
run: | | ||
cabal freeze | ||
- uses: actions/cache@v2.1.4 | ||
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: Install dependencies | ||
run: | | ||
cabal build all --only-dependencies | ||
- name: Build | ||
run: | | ||
cabal v2-update | ||
cabal v2-build all --enable-tests --enable-benchmarks | ||
cabal build all | ||
- name: Unit and property tests | ||
run: | | ||
cabal v2-test all --enable-tests --test-show-details=direct | ||
cabal test all --enable-tests --test-show-details=direct | ||
- if: matrix.ghc == '8.10.3' | ||
- if: matrix.ghc == '8.10.4' | ||
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' | ||
- if: matrix.ghc != '9.0.1' | ||
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' | ||
- if: matrix.ghc != '9.0.1' | ||
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' | ||
- if: matrix.ghc != '9.0.1' | ||
name: Build 'full-batteries' | ||
run: | | ||
cd "summoner-cli/examples/full-batteries/" | ||
echo "packages: ." > cabal.project | ||
cabal v2-build all | ||
cabal build all | ||
stack: | ||
name: stack / ghc ${{ matrix.ghc }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
stack: ["2.5"] | ||
ghc: ["8.10.4"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: haskell/actions/setup@v1 | ||
name: Setup Haskell Stack | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
stack-version: ${{ matrix.stack }} | ||
|
||
- uses: actions/cache@v1 | ||
name: Cache ~/.stack | ||
with: | ||
path: ~/.stack | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-stack | ||
|
||
- name: Install dependencies | ||
run: | | ||
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --only-dependencies | ||
- name: Build | ||
run: | | ||
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks | ||
- name: Test | ||
run: | | ||
stack test --system-ghc |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,15 +1,15 @@ | ||
resolver: lts-15.5 | ||
resolver: lts-17.9 | ||
|
||
packages: | ||
- summoner-cli/ | ||
- summoner-tui/ | ||
|
||
extra-deps: | ||
- colourista-0.1.0.0 | ||
- colourista-0.1.0.1 | ||
- generic-data-0.8.0.0 | ||
- hspec-hedgehog-0.0.1.1 | ||
- relude-1.0.0.0 | ||
- tomland-1.3.0.0 | ||
- validation-selective-0.1.0.0 | ||
- hashable-1.3.1.0 | ||
- microaeson-0.1.0.0 | ||
- optparse-applicative-0.16.0.0 | ||
- relude-1.0.0.1 | ||
- tomland-1.3.3.0 | ||
- vty-5.31 |
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