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.