delete unused GitHub Action; fix CI badge

This commit is contained in:
Peter Becich 2022-05-15 11:25:47 -07:00 committed by Andreas Abel
parent 1c35e037fd
commit 2d4f3f7fe3
2 changed files with 1 additions and 75 deletions

View File

@ -1,74 +0,0 @@
# modified from https://github.com/jgm/pandoc/blob/master/.github/workflows/ci.yml
name: CI
on:
push:
branches:
- '**'
paths-ignore: []
pull_request:
paths-ignore: []
jobs:
linux:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
versions:
- ghc: '9.2.2'
cabal: '3.6'
- ghc: '9.0.2'
cabal: '3.6'
- ghc: '8.10.7'
cabal: '3.6'
- ghc: '8.8.4'
cabal: '3.6'
steps:
- uses: actions/checkout@v2
- name: Install recent cabal/ghc
uses: haskell/actions/setup@v1
with:
ghc-version: ${{ matrix.versions.ghc }}
cabal-version: ${{ matrix.versions.cabal }}
# declare/restore cached things
# caching doesn't work for scheduled runs yet
# https://github.com/actions/cache/issues/63
- name: Cache cabal global package db
id: cabal-global
uses: actions/cache@v2
with:
path: |
~/.cabal
key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-global-${{ hashFiles('cabal.project') }}
- name: Cache cabal work
id: cabal-local
uses: actions/cache@v2
with:
path: |
dist-newstyle
key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-local
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libbrotli-dev
cabal update
cabal build --dependencies-only --enable-tests --disable-optimization
- name: Build
run: |
cabal build --enable-tests --disable-optimization 2>&1 | tee build.log
- name: Test
run: |
cabal test --enable-tests --disable-optimization
- name: Haddock
run: |
cabal haddock --enable-tests --disable-optimization

View File

@ -1,7 +1,7 @@
# hackage-server
[![Build Status](https://travis-ci.org/haskell/hackage-server.png?branch=master)](https://travis-ci.org/haskell/hackage-server)
[![Build status](https://github.com/haskell/hackage-server/actions/workflows/ci.yml/badge.svg)](https://github.com/haskell/hackage-server/actions/workflows/ci.yml)
[![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)
[![Build status](https://github.com/haskell/hackage-server/actions/workflows/nix-shell.yml/badge.svg)](https://github.com/haskell/hackage-server/actions/workflows/nix-shell.yml)
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.