From 0f77a120d28742626c3b3986f259e51349c6023c Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Wed, 29 Jan 2020 10:47:50 -0600 Subject: [PATCH] chore: add github action --- .github/workflows/main.yml | 20 ++++++++++++++++++++ README.md | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..3bd84cc5 --- /dev/null +++ b/.github/workflows/main.yml @@ -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 diff --git a/README.md b/README.md index 42496374..b17e9f52 100644 --- a/README.md +++ b/README.md @@ -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.