mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-14 09:32:22 +00:00
Add workflow with the same build commands as stackage nightly.
This commit is contained in:
parent
b3a685f57a
commit
4260dc85a1
1 changed files with 38 additions and 0 deletions
38
.github/workflows/stackage-nightly.yml
vendored
Normal file
38
.github/workflows/stackage-nightly.yml
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
name: Stackage nightly
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-haskell@v1
|
||||||
|
with:
|
||||||
|
stack-version: 'latest'
|
||||||
|
|
||||||
|
- name: Cache
|
||||||
|
uses: actions/cache@v1
|
||||||
|
env:
|
||||||
|
cache-name: cache-stack
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.stack
|
||||||
|
~/.stack-work
|
||||||
|
~/.ghc
|
||||||
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
|
${{ runner.os }}-build-
|
||||||
|
${{ runner.os }}-
|
||||||
|
|
||||||
|
- name: Test nightly
|
||||||
|
run: |
|
||||||
|
rm -f stack.yaml && stack init --resolver nightly
|
||||||
|
stack build --resolver nightly --haddock --test --bench --no-run-benchmarks
|
||||||
Loading…
Reference in a new issue