Skip to content

Commit

Permalink
Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
stla committed Feb 18, 2023
1 parent 25264cb commit 8957510
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/Stack-lts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Stack-lts

on:
pull_request:
push:
branches: [main, master]

jobs:
test:
strategy:
matrix:
runner:
- ubuntu-latest
- macOS-latest
- windows-latest

resolver:
- lts # ghc-9.2 (as of writing)
- lts-20.11 # ghc-9.2
- lts-19.33 # ghc-9.0
- lts-18.28 # ghc-8.10

fail-fast: false

runs-on: ${{ matrix.runner }}

steps:
- uses: actions/checkout@v3
- uses: freckle/stack-action@v3

- id: stack
uses: freckle/stack-action@v3
with:
stack-arguments: --resolver ${{ matrix.resolver }} --copy-bins --coverage

- uses: actions/upload-artifact@v2
with:
name: coverage-report
path: ${{ steps.stack.outputs.local-hpc-root }}
33 changes: 33 additions & 0 deletions .github/workflows/Stack-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Stack-nightly

on:
pull_request:
push:
branches: [main, master]

jobs:
test:
strategy:
matrix:
runner:
- ubuntu-latest
- macOS-latest
- windows-latest

fail-fast: false

runs-on: ${{ matrix.runner }}

steps:
- uses: actions/checkout@v3
- uses: freckle/stack-action@v3

- id: stack
uses: freckle/stack-action@v3
with:
stack-arguments: --resolver nightly --copy-bins --coverage

- uses: actions/upload-artifact@v2
with:
name: coverage-report
path: ${{ steps.stack.outputs.local-hpc-root }}
5 changes: 5 additions & 0 deletions .hlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## https://github.com/ndmitchell/hlint/blob/master/.hlint.yaml#L59
## https://github.com/commercialhaskell/stack/blob/master/.hlint.yaml
- ignore: {name: "Use head"}
- ignore: {name: "Use camelCase"}

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# jacobi-elliptic

<!-- badges: start -->
[![Stack-lts](https://github.com/stla/jacobi-elliptic/actions/workflows/Stack-lts.yml/badge.svg)](https://github.com/stla/jacobi-elliptic/actions/workflows/Stack-lts.yml)
[![Stack-nightly](https://github.com/stla/jacobi-elliptic/actions/workflows/Stack-nightly.yml/badge.svg)](https://github.com/stla/jacobi-elliptic/actions/workflows/Stack-nightly.yml)
<!-- badges: end -->

2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ resolver: lts-20.11
# - wai
packages:
- .
- ../jacobi-theta

# Dependency packages to be pulled from upstream that are not in the resolver.
# These entries can reference officially published versions as well as
Expand All @@ -43,6 +42,7 @@ packages:
#
extra-deps:
- elliptic-integrals-0.1.0.0
- jacobi-theta-0.1.0.0

# Override default flag values for local packages and extra-deps
# flags: {}
Expand Down
7 changes: 7 additions & 0 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ packages:
size: 674
original:
hackage: elliptic-integrals-0.1.0.0
- completed:
hackage: jacobi-theta-0.1.0.0@sha256:32e17e4ad80b4db818510c120af85cd571112b608c1b5ccc75462236aac08e36,1533
pantry-tree:
sha256: 1a336247149a646189ea90afdcd9281c3cf3801280d4b088c54aeed22ef08efc
size: 427
original:
hackage: jacobi-theta-0.1.0.0
snapshots:
- completed:
sha256: adbc602422dde10cc330175da7de8609e70afc41449a7e2d6e8b1827aa0e5008
Expand Down

0 comments on commit 8957510

Please sign in to comment.