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

Commit 3f12ac0

Browse files
committed
CI pipeline in Github Actions
1 parent 018aebe commit 3f12ac0

File tree

5 files changed

+55
-36
lines changed

5 files changed

+55
-36
lines changed

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Continuous Integration
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
continuous-integration:
7+
strategy:
8+
matrix:
9+
ghc-version:
10+
- "9.0.2"
11+
- "9.2.8"
12+
- "9.4.5"
13+
- "9.6.4"
14+
- "9.8.2"
15+
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Install cabal/ghc
22+
uses: haskell-actions/setup@v2
23+
id: setup-haskell
24+
with:
25+
ghc-version: ${{ matrix.ghc-version }}
26+
cabal-version: '3.10.3.0'
27+
28+
- name: Generate freeze file
29+
run: |
30+
cabal update
31+
cabal configure --disable-optimization
32+
cabal freeze
33+
# 'cabal freeze' will use the nearest index state which might not be exactly equal
34+
# to the index state specified in 'cabal.project'
35+
sed '/^index-state: /d' cabal.project.freeze > dependencies-versions
36+
37+
- name: Cache cabal work
38+
uses: actions/cache@v4
39+
with:
40+
path: |
41+
dist-newstyle
42+
${{ steps.setup-haskell.outputs.cabal-store }}
43+
# We are using the hash of 'cabal.project.local' so that different levels
44+
# of optimizations are cached separately
45+
key: ${{ runner.os }}-${{ hashFiles('dependencies-versions', 'cabal.project', 'cabal.project.local') }}-cabal-install
46+
47+
- name: Build dependencies only
48+
run: |
49+
cabal build --only-dependencies
50+
51+
- name: Build this package
52+
run: |
53+
cabal build

.travis.yml

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

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# distributed-static
2-
[![travis](https://secure.travis-ci.org/haskell-distributed/distributed-static.png)](http://travis-ci.org/haskell-distributed/distributed-static)
32
[![Release](https://img.shields.io/hackage/v/distributed-static.svg)](https://hackage.haskell.org/package/distributed-static)
43

54
See http://haskell-distributed.github.com for documentation, user guides,

distributed-static.cabal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ Copyright: Well-Typed LLP
2424
Category: Control
2525
Build-Type: Simple
2626
Cabal-Version: >=1.10
27-
extra-source-files: ChangeLog
27+
extra-source-files: ChangeLog
28+
Tested-With: GHC==9.0.2 GHC==9.2.8 GHC==9.4.5 GHC==9.6.4 GHC==9.8.2
2829

2930
Source-Repository head
3031
Type: git

stack.yaml

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

0 commit comments

Comments
 (0)