diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..188a266 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,21 @@ +name: Haskell CI + +on: + - push + - pull_request + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + ghc: ['8.0', '8.2', '8.4', '8.6', '8.8', '8.10', '9.0', '9.2'] + steps: + - uses: actions/checkout@v3 + - uses: haskell/actions/setup@v2 + with: + ghc-version: ${{ matrix.ghc }} + - name: Build + run: cabal build + - name: Test + run: cabal test --test-show-details=direct diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ec62ebd..0000000 --- a/.travis.yml +++ /dev/null @@ -1,44 +0,0 @@ -# Based on a template from http://docs.haskellstack.org/en/stable/GUIDE.html#travis-with-caching -# Use new container infrastructure to enable caching -sudo: true - -# Choose a lightweight base image; we provide our own build tools. -language: c - -# GHC depends on GMP. You can add other dependencies here as well. -addons: - apt: - packages: - - libgmp-dev - -# The different configurations we want to test. You could also do things like -# change flags or use --stack-yaml to point to a different file. -env: -- ARGS="--resolver lts-7" -- ARGS="--resolver lts-11" -- ARGS="--resolver lts-12" -- ARGS="--resolver lts-13" -- ARGS="--resolver lts-15" -- ARGS="--resolver lts-17" - -before_install: -# Download and unpack the stack executable -- sudo ln -s /lib/libncurses.so.6 /usr/lib/libtinfo.so.6 -- sudo ln -s /usr/lib/libtinfo.so.6 /usr/lib/libtinfo.so -- mkdir -p ~/.local/bin -- export PATH=$HOME/.local/bin:$PATH -- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack' -# Ask stack to install GHC -- stack $ARGS setup -# Ask stack to install hscolour for haddock source colorization. -- stack $ARGS install hscolour - -# This line does all of the work: build the library, -# executables, and test suites, and runs the test suites. --no-terminal works -# around some quirks in Travis's terminal implementation. -script: stack $ARGS --no-terminal test --haddock --no-haddock-deps --bench - -# Caching so the next build will be fast too. -cache: - directories: - - $HOME/.stack diff --git a/dimensional.cabal b/dimensional.cabal index 4f3fa21..819babf 100644 --- a/dimensional.cabal +++ b/dimensional.cabal @@ -11,7 +11,7 @@ bug-reports: https://github.com/bjornbm/dimensional/issues/ category: Math, Physics synopsis: Statically checked physical dimensions cabal-version: >= 1.10 -tested-with: GHC == 8.0.1, GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.1, GHC == 8.8.3, GHC == 8.10.4 +tested-with: GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.7, GHC == 9.0.2, GHC == 9.2.2 build-type: Simple description: