chore: add github action

This commit is contained in:
Simon Cruanes 2020-01-29 10:47:50 -06:00
parent 130608d924
commit 0f77a120d2
2 changed files with 21 additions and 1 deletions

20
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: build
on: [push]
jobs:
run:
name: Build
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [macos-latest, ubuntu-latest, windows-latest]
ocaml-version: [ '4.05.0' ]
steps:
- uses: actions/checkout@master
- uses: avsm/setup-ocaml@master
with:
ocaml-version: ${{ matrix.ocaml-version }}
- run: opam pin -n .
- run: opam depext -yt tiny_httpd
- run: opam install -t . --deps-only
- run: opam exec -- dune build
- run: opam exec -- dune runtest

View file

@ -1,5 +1,5 @@
# Tiny_httpd [![build status](https://travis-ci.org/c-cube/tiny_httpd.svg?branch=master)](https://travis-ci.org/c-cube/tiny_httpd)
# Tiny_httpd [![build status](https://travis-ci.org/c-cube/tiny_httpd.svg?branch=master)](https://travis-ci.org/c-cube/tiny_httpd) ![![build](https://github.com/c-cube/tiny_httpd/workflows/build/badge.svg)](https://github.com/c-cube/tiny_httpd/actions)
Minimal HTTP server using good old threads and `Scanf` for routing.