Skip to content

Commit

Permalink
Merge pull request #2 from input-output-hk/js/ci-and-cleanup
Browse files Browse the repository at this point in the history
Add CI and cleanup
  • Loading branch information
jasagredo authored Nov 13, 2023
2 parents e29f850 + 050fff9 commit b217cc8
Show file tree
Hide file tree
Showing 11 changed files with 102 additions and 165 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @input-output-hk/performance-tracing
2 changes: 2 additions & 0 deletions .github/workflows/cabal.project.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
program-options
ghc-options: -Werror
56 changes: 56 additions & 0 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: CI

# Limit concurrent runs of this workflow within a single PR
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
workflow_dispatch:
pull_request:
merge_group:
push:
branches:
- main

jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
ghc: ["8.10.7", "9.2.8", "9.6.3", "9.8.1"]
cabal: ["3.10.2.0"]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v4

- name: Install base libraries
uses: input-output-hk/actions/base@latest
with:
use-sodium-vrf: false

- name: Install Haskell
uses: input-output-hk/actions/haskell@latest
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- name: Configure Cabal
run: |
cp .github/workflows/cabal.project.local .
- name: Update Cabal (Hackage and CHaP)
run: |
cabal clean
cabal update
- name: Build dependencies
id: build-dependencies
run: cabal build --only-dependencies all -j

- name: Build project
run: cabal build all -j
36 changes: 26 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
*.hi
# Created by https://www.toptal.com/developers/gitignore/api/haskell
# Edit at https://www.toptal.com/developers/gitignore?templates=haskell

### Haskell ###
dist
dist-*
cabal-dev
*.o
*.p_hi
*.prof
*.tix
.DS_Store
*.hi
*.hie
*.chi
*.chs.h
*.dyn_o
*.dyn_hi
.hpc
.hsenv
.cabal-sandbox/
.hpc/
/dist/*
cabal.config
cabal.sandbox.config
examples/Group
*.sublime-*
*.prof
*.aux
*.hp
*.eventlog
.stack-work/
cabal.project.local
cabal.project.local~
.HTF/
.ghc.environment.*

# End of https://www.toptal.com/developers/gitignore/api/haskell
151 changes: 0 additions & 151 deletions .travis.yml

This file was deleted.

File renamed without changes.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# ekg-core [![Hackage version](https://img.shields.io/hackage/v/ekg-core.svg?label=Hackage)](https://hackage.haskell.org/package/ekg-core) [![Build Status](https://secure.travis-ci.org/tibbe/ekg-core.svg?branch=master)](http://travis-ci.org/tibbe/ekg-core)
# ekg-core

Library for tracking system metrics
2 changes: 0 additions & 2 deletions Setup.hs

This file was deleted.

1 change: 1 addition & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
packages: ./
13 changes: 13 additions & 0 deletions changelog.d/scriv.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[scriv]
format = md
insert_marker = Changelog entries
md_header_level = 2
version = literal: ekg-core.cabal: version
categories = Patch, Non-Breaking, Breaking
end_marker = scriv-end-here
fragment_directory = changelog.d
ghrel_template = {{body}}
main_branches = master, main, develop
new_fragment_template = file: new_fragment.${config:format}.j2
output_file = CHANGELOG.${config:format}
skip_fragments = README.*
2 changes: 1 addition & 1 deletion ekg-core.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ maintainer:

category: System
build-type: Simple
extra-source-files: CHANGES.md
extra-source-files: CHANGELOG.md
tested-with:
GHC ==8.4.4
|| ==8.6.5
Expand Down

0 comments on commit b217cc8

Please sign in to comment.