Skip to content

Commit b42ce58

Browse files
committed
Changed from TravisCI to GithubActions
1 parent 5f6d599 commit b42ce58

File tree

6 files changed

+122
-194
lines changed

6 files changed

+122
-194
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Use Dependabot to automatically generate PRs if the dependencies
2+
# of our GitHub Actions scripts get out of date. For more info, see:
3+
# <https://github.blog/2020-06-01-keep-all-your-packages-up-to-date-with-dependabot/>
4+
# <https://docs.github.com/en/github/administering-a-repository/enabling-and-disabling-version-updates>
5+
version: 2
6+
updates:
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "daily"

.github/workflows/ci.yml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# This GitHub Actions script was modified from from:
2+
# <https://github.com/haskell/bytestring/blob/master/.github/workflows/ci.yml>
3+
# commit/784cdd7dc492f283f41c28bfee1ab62a20c4d353
4+
# For more guidance, see also <https://kodimensional.dev/github-actions>
5+
#
6+
# Once Haskell-CI fully supports generating GitHub Actions scripts,
7+
# we should switch over to useing that rather than maintaining this
8+
# file manually.
9+
name: ci
10+
on:
11+
push:
12+
branches:
13+
- master
14+
pull_request: {}
15+
16+
defaults:
17+
run:
18+
shell: bash
19+
20+
jobs:
21+
build:
22+
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }}
23+
runs-on: ${{ matrix.os }}
24+
strategy:
25+
fail-fast: true
26+
matrix:
27+
os: [ubuntu-latest]
28+
# Note(2021.10.16): GitHub now has 9.0.1.
29+
ghc: ['8.0.2', '8.2.2', '8.4.4', '8.6.5', '8.8.4', '8.10.3', '9.0.1']
30+
include:
31+
- os: windows-latest
32+
ghc: 'latest' # Lacking Win-specific bits, latest should suffice.
33+
- os: macOS-latest
34+
ghc: 'latest' # Lacking Mac-specific bits, latest should suffice.
35+
steps:
36+
- uses: actions/[email protected]
37+
- uses: haskell/actions/[email protected]
38+
id: setup-haskell-cabal
39+
with:
40+
ghc-version: ${{ matrix.ghc }}
41+
- name: Update cabal package database
42+
run: cabal update
43+
- uses: actions/[email protected]
44+
name: Cache cabal stuff
45+
with:
46+
path: |
47+
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
48+
dist-newstyle
49+
key: ${{ runner.os }}-${{ matrix.ghc }}
50+
- name: Install dependencies
51+
run: |
52+
cabal build all --only-dependencies
53+
- name: Build
54+
run: |
55+
cabal build all
56+
## BUG: our Tasty tests aren't hooked into cabal yet...
57+
## TODO: why does bytestring run tests via sdist stuff instead of just directly?
58+
#- name: Test
59+
# run: |
60+
# cabal sdist -z -o .
61+
# cabal get unification-fd-*.tar.gz
62+
# cd unification-fd-*/
63+
# cp ../cabal.project .
64+
# cabal test --test-show-details=direct
65+
## We have no benchmarks yet
66+
#- name: Bench
67+
# run: |
68+
# cd unification-fd-*/
69+
# cabal bench --benchmark-option=-l
70+
- name: Haddock
71+
run: cabal haddock
72+
73+
## BUG: our Tasty tests aren't hooked into cabal yet, so no point in this yet
74+
#build-freebsd:
75+
# # This job intentionally is using macOS because at the time of
76+
# # the writing Linux and Windows environments don't have the
77+
# # necessary virtualization features.
78+
# # See <https://github.com/vmactions/freebsd-vm#under-the-hood>
79+
# runs-on: macos-latest
80+
# steps:
81+
# - uses: actions/checkout@v2
82+
# - name: Test
83+
# id: build-freebsd
84+
# uses: vmactions/[email protected]
85+
# with:
86+
# usesh: true
87+
# mem: 4096
88+
# prepare: pkg install -y ghc hs-cabal-install git
89+
# # Virtual machine does not allow to leverage cache
90+
# # and is quite slow, so only tests are run.
91+
# run: |
92+
# cabal update
93+
# cabal test --test-show-details=direct

.travis.yml

Lines changed: 0 additions & 175 deletions
This file was deleted.

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
0.2.0.10 (2021-10-16):
2+
- Changed from TravisCI to GithubActions
13
0.2.0.9 (2019-04-13):
24
- Changed cabal to use Simple build type, to support cabal's new-build.
35
- Removed the CPP hack for Haddock documentation, as part

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
exact-combinatorics
22
===================
33
[![Hackage version](https://img.shields.io/hackage/v/exact-combinatorics.svg?style=flat)](https://hackage.haskell.org/package/exact-combinatorics)
4-
[![Hackage-Deps](https://img.shields.io/hackage-deps/v/exact-combinatorics.svg?style=flat)](http://packdeps.haskellers.com/specific?package=exact-combinatorics)
5-
[![TravisCI Build Status](https://img.shields.io/travis/wrengr/exact-combinatorics.svg?style=flat)](https://travis-ci.org/wrengr/exact-combinatorics)
4+
[![Build Status](https://github.com/wrengr/exact-combinatorics/workflows/ci/badge.svg)](https://github.com/wrengr/exact-combinatorics/actions?query=workflow%3Aci)
5+
[![Dependencies](https://img.shields.io/hackage-deps/v/exact-combinatorics.svg?style=flat)](http://packdeps.haskellers.com/specific?package=exact-combinatorics)
66

77
Efficient exact computation of combinatoric functions.
88

exact-combinatorics.cabal

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
----------------------------------------------------------------
2-
-- wren gayle romano <[email protected]> ~ 2019.04.13
2+
-- wren gayle romano <[email protected]> ~ 2021.10.16
33
----------------------------------------------------------------
44

5-
-- By and large Cabal >=1.2 is fine; but
6-
-- * >=1.6 gives tested-with: and source-repository:
7-
-- * >=1.8 allows executables to build-depends: on the library
8-
-- * >=1.9.2 allows Test-Suite
9-
Cabal-Version: >= 1.9.2
5+
-- Cabal >=1.10 is required by Hackage.
6+
Cabal-Version: >= 1.10
107
Build-Type: Simple
118

129
Name: exact-combinatorics
13-
Version: 0.2.0.9
10+
Version: 0.2.0.10
1411
Stability: experimental
1512
Homepage: https://wrengr.org/
1613
Author: wren gayle romano
1714
Maintainer: [email protected]
18-
Copyright: Copyright (c) 2011--2019 wren gayle romano
15+
Copyright: Copyright (c) 2011--2021 wren gayle romano
1916
License: BSD3
2017
License-File: LICENSE
2118

@@ -26,23 +23,24 @@ Description: Efficient exact computation of combinatoric functions.
2623
Extra-source-files:
2724
CHANGELOG, README.md
2825

29-
-- Cf., <https://travis-ci.org/wrengr/exact-combinatorics>
26+
-- This should work as far back as GHC 7.4.1, but we don't verify that by CI.
27+
-- <https://github.com/wrengr/exact-combinatorics/actions?query=workflow%3Aci>
3028
Tested-With:
31-
GHC ==7.4.1, GHC ==7.4.2,
32-
GHC ==7.6.1, GHC ==7.6.2, GHC ==7.6.3,
33-
GHC ==7.8.1, GHC ==7.8.2, GHC ==7.8.3, GHC ==7.8.4,
34-
GHC ==7.10.1, GHC ==7.10.2, GHC ==7.10.3,
35-
GHC ==8.0.1, GHC ==8.0.2,
36-
GHC ==8.2.1, GHC ==8.2.2,
37-
GHC ==8.4.1, GHC ==8.4.2, GHC ==8.4.3,
38-
GHC ==8.6.1, GHC ==8.6.2
29+
GHC ==8.0.2,
30+
GHC ==8.2.2,
31+
GHC ==8.4.4,
32+
GHC ==8.6.5,
33+
GHC ==8.8.4,
34+
GHC ==8.10.3,
35+
GHC ==9.0.1
3936

4037
Source-Repository head
4138
Type: git
4239
Location: https://github.com/wrengr/exact-combinatorics.git
4340

4441
----------------------------------------------------------------
4542
Library
43+
Default-Language: Haskell2010
4644
Hs-Source-Dirs: src
4745
Exposed-Modules: Math.Combinatorics.Exact.Primes
4846
, Math.Combinatorics.Exact.Factorial

0 commit comments

Comments
 (0)