Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit a4f20de

Browse files
authoredFeb 22, 2020
GitHub workflows (#533)
* add CI workflow for lts / nightly with program cache * remove travis & appveyor
1 parent 5e28e3e commit a4f20de

File tree

5 files changed

+42
-135
lines changed

5 files changed

+42
-135
lines changed
 

‎.appveyor.yml

-31
This file was deleted.

‎.github/workflows/main.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
on: [push, pull_request]
2+
3+
name: Continuous integration
4+
5+
jobs:
6+
test:
7+
name: Test Suite
8+
strategy:
9+
matrix:
10+
config:
11+
# main lts
12+
- { os: ubuntu-latest, resolver: lts-15.0 }
13+
- { os: windows-latest, resolver: lts-15.0 }
14+
- { os: macos-latest, resolver: lts-15.0 }
15+
# other resolvers
16+
- { os: ubuntu-latest, resolver: nightly }
17+
- { os: ubuntu-latest, resolver: lts-14.27 }
18+
- { os: ubuntu-latest, resolver: lts-12.26 }
19+
runs-on: ${{ matrix.config.os }}
20+
steps:
21+
- uses: actions/checkout@v1
22+
- name: Install Stack
23+
if: matrix.config.os != 'ubuntu-latest'
24+
run: curl -sSL https://get.haskellstack.org/ | sh
25+
26+
- name: cache programs
27+
id: cache-programs
28+
uses: actions/cache@v1
29+
with:
30+
path: ~/.stack/programs
31+
key: programs-${{ matrix.config.os }}-${{ matrix.config.resolver }}
32+
33+
- name: Setup
34+
if: steps.cache-programs.outputs.cache-hit != 'true'
35+
run: stack setup --resolver ${{ matrix.config.resolver }}
36+
37+
- name: Build
38+
run: stack build --resolver ${{ matrix.config.resolver }} --test --no-run-tests
39+
- name: run tests
40+
run: stack test --resolver ${{ matrix.config.resolver }}

‎.travis.yml

-101
This file was deleted.

‎README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
Foundation
22
==========
33

4-
[![Linux Build Status](https://img.shields.io/travis/haskell-foundation/foundation/master.svg?label=Linux%20build)](https://travis-ci.org/haskell-foundation/foundation)
5-
[![Windows Build Status](https://img.shields.io/appveyor/ci/vincenthz/foundation/master.svg?label=Windows%20build)](https://ci.appveyor.com/project/vincenthz/foundation/branch/master)
4+
![Continuous integration](https://github.com/haskell-foundation/foundation/workflows/Continuous%20integration/badge.svg)
65
[![Doc](https://readthedocs.org/projects/haskell-foundation/badge/?version=latest)](http://haskell-foundation.readthedocs.io/en/latest/)
76
[![Stackage version](https://www.stackage.org/package/foundation/badge/lts?label=Stackage)](https://www.stackage.org/package/foundation)
87
[![Hackage version](https://img.shields.io/hackage/v/foundation.svg?label=Hackage)](https://hackage.haskell.org/package/foundation)

‎stack.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# ~*~ auto-generated by haskell-ci with config : 5fcf42690a95126489f593db1999c5b25084b4dec209b49ed45d1bdbc875ba2e ~*~
2-
{ resolver: ghc-8.8.1, packages: [ foundation/, basement/ ], extra-deps: [ "gauge-0.2.4@sha256:b8b19a8c13ab79097726d0edf91297ccd3eede053d1de47e3ac67f1252cc33c2,3777", "vector-0.12.0.3@sha256:1422b0bcf4e7675116ca8d9f473bf239850c58c4518a56010e3bfebeac345ace,7171", "primitive-0.7.0.0@sha256:ee352d97cc390d8513530029a2213a95c179a66c406906b18d03702c1d9ab8e5,3416" ], flags: {} }
2+
{ resolver: lts-14.27, packages: [ foundation/, basement/ ], extra-deps: [], flags: {} }
33

0 commit comments

Comments
 (0)
This repository has been archived.