mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 11:15:35 -05:00
Cleanup GitHub Actions workflow
Signed-off-by: Sora Morimoto <sora@morimoto.io>
This commit is contained in:
parent
0bb7094ef8
commit
008eae1236
1 changed files with 35 additions and 16 deletions
43
.github/workflows/main.yml
vendored
43
.github/workflows/main.yml
vendored
|
|
@ -1,21 +1,40 @@
|
||||||
name: build
|
name: build
|
||||||
on: [push, pull_request]
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
schedule:
|
||||||
|
# Prime the caches every Monday
|
||||||
|
- cron: 0 1 * * MON
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run:
|
build:
|
||||||
name: Build
|
|
||||||
runs-on: ${{ matrix.operating-system }}
|
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
operating-system: [macos-latest, ubuntu-latest, windows-latest]
|
os:
|
||||||
ocaml-compiler: [ '4.04.0', '4.11.0' ]
|
- macos-latest
|
||||||
|
- ubuntu-latest
|
||||||
|
- windows-latest
|
||||||
|
ocaml-compiler:
|
||||||
|
- 4.04.x
|
||||||
|
- 4.13.x
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- name: Checkout code
|
||||||
- uses: avsm/setup-ocaml@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Use OCaml ${{ matrix.ocaml-compiler }}
|
||||||
|
uses: ocaml/setup-ocaml@v2
|
||||||
with:
|
with:
|
||||||
ocaml-compiler: ${{ matrix.ocaml-compiler }}
|
ocaml-compiler: ${{ matrix.ocaml-compiler }}
|
||||||
- run: opam pin -n .
|
opam-depext-flags: --with-test
|
||||||
- run: opam depext -yt tiny_httpd tiny_httpd_camlzip
|
|
||||||
- run: opam install -t . --deps-only
|
- run: opam install . --deps-only --with-test
|
||||||
|
|
||||||
- run: opam exec -- dune build @install
|
- run: opam exec -- dune build @install
|
||||||
|
|
||||||
- run: opam exec -- dune runtest
|
- run: opam exec -- dune runtest
|
||||||
if: ${{ matrix.operating-system == 'unbuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue