-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Build and test with cabal and stack for GHC 8.8.4 and 8.10.7 - update vivid to 0.5.2.0 in order to build with latest hashable. This version adds an Eq instance for SynthDef, which therefore doesn't need to be defined in this repo.
- Loading branch information
1 parent
eba9d22
commit 6155a35
Showing
12 changed files
with
410 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
on: [push, pull_request] | ||
name: build | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
ghc: ['8.8.4','8.10.7'] | ||
os: [ubuntu-latest] | ||
name: Haskell GHC ${{ matrix.ghc }} cabal + stack | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: haskell/actions/setup@v1.2.9 | ||
id: setup-haskell-build | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
cabal-version: '3.6.2.0' | ||
enable-stack: true | ||
stack-version: '2.7' | ||
- name: Install dependencies | ||
run: sudo apt-get install -y libxml2-utils libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev libpulse-dev libblas-dev liblapack-dev libasound2-dev | ||
- name: Cabal update | ||
run: cabal update | ||
- name: Cache Cabal build artifacts | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
${{ steps.setup-haskell-build.outputs.cabal-store }} | ||
dist-newstyle | ||
key: ${{ runner.os }}-cabal-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }} | ||
restore-keys: | | ||
${{ runner.os }}-cabal-${{ matrix.ghc }} | ||
- name: Cabal build dependencies | ||
run: | | ||
cabal build all --enable-tests --only-dependencies --project-file=cabal.project.${{ matrix.ghc }} | ||
- name: Cabal build packages | ||
run: | | ||
cabal build all --enable-tests --project-file=cabal.project.${{ matrix.ghc }} | ||
- name: Cabal test | ||
run: | | ||
cabal test all --enable-tests --test-show-details=Always --project-file=cabal.project.${{ matrix.ghc }} | ||
- name: Cache stack build artifacts | ||
uses: freckle/stack-cache-action@v1.0.1 | ||
with: | ||
stack-yaml: stack.${{ matrix.ghc }}.yaml | ||
- name: Stack build and test | ||
run: | | ||
stack build --system-ghc --test --stack-yaml stack.${{ matrix.ghc }}.yaml |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
cabal.project |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
cabal.project |
Oops, something went wrong.