Skip to content

Commit

Permalink
CI: Use actions/setup-haskell
Browse files Browse the repository at this point in the history
  • Loading branch information
andys8 committed Aug 9, 2020
1 parent 778625f commit 2e8ae91
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ jobs:
with:
path: ~/.stack
key: ${{ matrix.os }}-homestack
- uses: actions/cache@v2
name: Cache .stack-work
- uses: actions/setup-haskell@v1.1
with:
path: .stack-work
key: ${{ matrix.os }}-stackwork
- if: matrix.os == 'macos-latest'
run: brew install haskell-stack
- name: Stack setup
run: stack setup
ghc-version: "8.8.3"
enable-stack: true
stack-version: "latest"
- name: Build
run: stack build
- name: Run tests
run: stack test
- name: Run static executable
run: |
stack install --local-bin-path . --flag git-brunch:static
./git-brunch --version
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#
# resolver: ./custom-snapshot.yaml
# resolver: https://example.com/snapshots/2018-01-01.yaml
resolver: lts-16.8
resolver: lts-16.6

# User packages to be built.
# Various formats can be used as shown in the example below.
Expand Down
8 changes: 4 additions & 4 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
packages: []
snapshots:
- completed:
size: 532379
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/16/8.yaml
sha256: 2ad3210d2ad35f3176005d68369a18e4d984517bfaa2caade76f28ed0b2e0521
original: lts-16.8
size: 531718
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/16/6.yaml
sha256: 230a7266fc11f76222bd3bb68e9503ed11d553060a752f164bff6753ed03e271
original: lts-16.6

0 comments on commit 2e8ae91

Please sign in to comment.