Skip to content

Commit cebf1a1

Browse files
authored
Merge pull request #1194 from peterbecich/haskell-github-action
use `haskell/actions` GitHub Action
2 parents 7d357fc + 339cad2 commit cebf1a1

File tree

3 files changed

+36
-220
lines changed

3 files changed

+36
-220
lines changed

.github/workflows/cabal.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
- ci*
6+
pull_request:
7+
branches:
8+
- master
9+
- ci*
10+
name: Cabal
11+
jobs:
12+
build:
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
ghc: ['9.4.4', '9.2.7', '9.0.2']
18+
cabal: ['3.8.1.0']
19+
os: [ubuntu-latest]
20+
name: Cabal with GHC ${{ matrix.ghc }}
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Setup Haskell
24+
uses: haskell/actions/setup@v2
25+
with:
26+
ghc-version: ${{ matrix.ghc }}
27+
cabal-version: ${{ matrix.cabal }}
28+
- name: Install dependencies
29+
run: sudo apt install -y libbrotli-dev libgd-dev
30+
- name: Build
31+
run: cabal build all --enable-tests
32+
- name: Test
33+
run: cabal test all --enable-tests
34+
- name: Haddock
35+
run: cabal haddock all

.github/workflows/haskell-ci.yml

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

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# hackage-server
22

3-
[![Build Status](https://travis-ci.org/haskell/hackage-server.png?branch=master)](https://travis-ci.org/haskell/hackage-server)
4-
[![Build status](https://github.com/haskell/hackage-server/actions/workflows/haskell-ci.yml/badge.svg)](https://github.com/haskell/hackage-server/actions/workflows/haskell-ci.yml)
3+
[![Build status](https://github.com/haskell/hackage-server/actions/workflows/cabal.yml/badge.svg)](https://github.com/haskell/hackage-server/actions/workflows/cabal.yml)
54
[![Build status](https://github.com/haskell/hackage-server/actions/workflows/nix-flake.yml/badge.svg)](https://github.com/haskell/hackage-server/actions/workflows/nix-flake.yml)
65

76
This is the `hackage-server` code. This is what powers <http://hackage.haskell.org>, and many other private hackage instances. The `master` branch is suitable for general usage. Specific policy and documentation for the central hackage instance exists in the `central-server` branch.

0 commit comments

Comments
 (0)