-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into koz/indexed-traversable
- Loading branch information
Showing
18 changed files
with
127 additions
and
171 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,2 +1 @@ | ||
Please don't forget to add to the "WIP" section of the changelog and run | ||
`hpack` if appropriate! | ||
Please don't forget to add to the "WIP" section of the changelog! |
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 |
---|---|---|
|
@@ -4,93 +4,67 @@ on: [pull_request] | |
|
||
jobs: | ||
cabal: | ||
|
||
name: "Cabal: ${{ matrix.ghc }} on ${{ matrix.os }}" | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
ghc: ['8.10.1', '8.8.3', '8.6.5', '8.4.4', '8.2.2', '8.0.2'] | ||
cabal: ['3.0'] | ||
os: [ubuntu-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
|
||
ghc: ['8.10', '9.0', '9.2'] | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-haskell@v1 | ||
- name: Checkout base repo | ||
uses: actions/[email protected] | ||
- name: Set up Haskell | ||
id: setup-haskell | ||
uses: haskell/actions/setup@v1 | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
cabal-version: ${{ matrix.cabal }} | ||
|
||
- uses: actions/cache@v1 | ||
name: Cache ~/.cabal/packages | ||
with: | ||
path: ~/.cabal/packages | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal-packages | ||
- uses: actions/cache@v1 | ||
name: Cache ~/.cabal/store | ||
cabal-version: 'latest' | ||
- name: Configure | ||
run: cabal new-configure | ||
- name: Freeze | ||
run: cabal freeze | ||
- name: Cache | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.cabal/store | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal-store | ||
- uses: actions/cache@v1 | ||
name: Cache dist-newstyle | ||
with: | ||
path: dist-newstyle | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-dist-newstyle | ||
|
||
- name: Install dependencies | ||
run: | | ||
cabal update | ||
cabal build --only-dependencies --enable-tests --enable-benchmarks | ||
path: ${{ steps.setup-haskell.outputs.cabal-store }} | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }} | ||
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}- | ||
- name: Build | ||
run: cabal build --enable-tests --enable-benchmarks all | ||
|
||
run: cabal build | ||
stack: | ||
|
||
name: "Stack: ${{ matrix.resolver }} on ${{ matrix.os }}" | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
stack-args: [''] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
resolver: ['lts-18.22', 'nightly-2022-01-20'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-haskell@v1 | ||
with: | ||
stack-version: 'latest' | ||
|
||
- name: Cache stack global package db | ||
id: stack-global | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.stack | ||
key: ${{ runner.os }}-stack-global-${{ matrix.stack-args }}-${{ hashFiles('**.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-stack-global-${{ matrix.stack-args }} | ||
${{ runner.os }}-stack-global | ||
- name: Cache .stack-work | ||
id: stack-work | ||
uses: actions/cache@v1 | ||
with: | ||
path: .stack-work | ||
key: ${{ runner.os }}-stack-work-${{ matrix.stack-args }}-${{ hashFiles('**.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-stack-work-${{ matrix.stack-args }} | ||
${{ runner.os }}-stack-work | ||
- name: Install dependencies | ||
run: | | ||
stack build --test --bench --only-dependencies $ARGS | ||
env: | ||
ARGS: ${{ matrix.args }} | ||
|
||
- name: Build | ||
run: | | ||
stack build $ARGS | ||
env: | ||
ARGS: ${{ matrix.args }} | ||
|
||
- name: Checkout base repo | ||
uses: actions/[email protected] | ||
- name: Set up Haskell | ||
id: setup-haskell | ||
uses: haskell/actions/setup@v1 | ||
with: | ||
stack-version: 'latest' | ||
- name: Cache Stack global package DB | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.stack | ||
key: ${{ runner.os }}-stack-global-${{ matrix.resolver }}-${{ hashFiles('**.yaml') }} | ||
restore-keys: ${{ runner.os }}-stack-global-${{ matrix.resolver }} | ||
- name: Cache .stack-work | ||
uses: actions/[email protected] | ||
with: | ||
path: .stack-work | ||
key: ${{ runner.os }}-stack-work-${{ matrix.resolver}}-${{ hashFiles('**.yaml') }} | ||
restore-keys: ${{ runner.os }}-stack-work-${{ matrix.resolver }} | ||
# https://github.com/commercialhaskell/stack/issues/5405 | ||
- name: Clear setup-exe-cache directory | ||
if: runner.os == 'macOS' | ||
continue-on-error: true | ||
run: rm -r ~/.stack/setup-exe-cache | ||
- name: Build | ||
run: stack build --resolver=${{ matrix.resolver }} | ||
nix: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
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 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
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.