mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-07 11:45:36 -05:00
CI
This commit is contained in:
parent
29dc16114e
commit
b97c8abf80
3 changed files with 9 additions and 59 deletions
2
.github/workflows/gh-pages.yml
vendored
2
.github/workflows/gh-pages.yml
vendored
|
|
@ -3,7 +3,7 @@ name: github pages
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
|
|
||||||
17
.github/workflows/main.yml
vendored
17
.github/workflows/main.yml
vendored
|
|
@ -3,9 +3,8 @@ name: build
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
schedule:
|
branches:
|
||||||
# Prime the caches every Monday
|
- main
|
||||||
- cron: 0 1 * * MON
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
@ -32,14 +31,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ocaml-compiler: ${{ matrix.ocaml-compiler }}
|
ocaml-compiler: ${{ matrix.ocaml-compiler }}
|
||||||
allow-prerelease-opam: true
|
allow-prerelease-opam: true
|
||||||
opam-local-packages: |
|
|
||||||
./tiny_httpd.opam
|
|
||||||
./tiny_httpd_camlzip.opam
|
|
||||||
opam-depext-flags: --with-test
|
opam-depext-flags: --with-test
|
||||||
|
|
||||||
- run: opam install ./tiny_httpd.opam ./tiny_httpd_camlzip.opam --deps-only --with-test
|
- run: opam install ./tiny_httpd.opam ./tiny_httpd_camlzip.opam ./tiny_httpd_ws.opam --deps-only --with-test
|
||||||
|
|
||||||
- run: opam exec -- dune build @install -p tiny_httpd,tiny_httpd_camlzip
|
- run: opam exec -- dune build @install -p tiny_httpd,tiny_httpd_camlzip,tiny_httpd_ws
|
||||||
|
|
||||||
- run: opam exec -- dune build @src/runtest @examples/runtest @tests/runtest -p tiny_httpd
|
- run: opam exec -- dune build @src/runtest @examples/runtest @tests/runtest -p tiny_httpd
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
|
@ -49,6 +45,9 @@ jobs:
|
||||||
- run: opam exec -- dune build @src/runtest @examples/runtest @tests/runtest -p tiny_httpd_camlzip
|
- run: opam exec -- dune build @src/runtest @examples/runtest @tests/runtest -p tiny_httpd_camlzip
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
|
||||||
|
- run: opam exec -- dune build @src/runtest @examples/runtest @tests/runtest -p tiny_httpd_ws
|
||||||
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
|
||||||
- run: opam install logs -y
|
- run: opam install logs -y
|
||||||
|
|
||||||
- run: opam exec -- dune build @install -p tiny_httpd,tiny_httpd_camlzip
|
- run: opam exec -- dune build @install -p tiny_httpd,tiny_httpd_camlzip,tiny_httpd_ws
|
||||||
|
|
|
||||||
49
.github/workflows/main5.yml
vendored
49
.github/workflows/main5.yml
vendored
|
|
@ -1,49 +0,0 @@
|
||||||
name: build (ocaml 5)
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
push:
|
|
||||||
schedule:
|
|
||||||
# Prime the caches every Monday
|
|
||||||
- cron: 0 1 * * MON
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
strategy:
|
|
||||||
fail-fast: true
|
|
||||||
matrix:
|
|
||||||
os:
|
|
||||||
- ubuntu-latest
|
|
||||||
#- macos-latest
|
|
||||||
#- windows-latest
|
|
||||||
ocaml-compiler:
|
|
||||||
- 5.1.x
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Use OCaml ${{ matrix.ocaml-compiler }}
|
|
||||||
uses: ocaml/setup-ocaml@v2
|
|
||||||
with:
|
|
||||||
ocaml-compiler: ${{ matrix.ocaml-compiler }}
|
|
||||||
opam-depext-flags: --with-test
|
|
||||||
allow-prerelease-opam: true
|
|
||||||
|
|
||||||
- run: opam install . --deps-only --with-test
|
|
||||||
|
|
||||||
- run: opam exec -- dune build @install -p tiny_httpd,tiny_httpd_camlzip
|
|
||||||
|
|
||||||
- run: opam exec -- dune build @src/runtest @examples/runtest @tests/runtest -p tiny_httpd
|
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
|
||||||
|
|
||||||
- run: opam install tiny_httpd
|
|
||||||
|
|
||||||
- run: opam exec -- dune build @src/runtest @examples/runtest @tests/runtest -p tiny_httpd_camlzip
|
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
|
||||||
|
|
||||||
- run: opam install logs -y
|
|
||||||
|
|
||||||
- run: opam exec -- dune build @install -p tiny_httpd,tiny_httpd_camlzip
|
|
||||||
Loading…
Add table
Reference in a new issue