From c2cab292b133e7cf8f4cd6b005b9c128f1ad2d7c Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Wed, 22 Jul 2020 17:40:59 -0400 Subject: [PATCH 1/3] chore: add github ci --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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..24b0dbcd --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,21 @@ +name: build +on: [push] +jobs: + run: + name: Build + runs-on: ${{ matrix.operating-system }} + strategy: + matrix: + #operating-system: [macos-latest, ubuntu-latest, windows-latest] + operating-system: [ubuntu-latest] + ocaml-version: [ '4.08.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 containers containers-data containers-thread + - run: opam install -t . --deps-only + - run: opam exec -- dune build + - run: opam exec -- dune runtest From aba959aa89655633e0ffb172098f1ae9934b6969 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Wed, 22 Jul 2020 18:00:54 -0400 Subject: [PATCH 2/3] chore(ci): widen support for github CI --- .github/workflows/main.yml | 5 ++--- README.md | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 24b0dbcd..0ebc1a4a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,11 +6,10 @@ jobs: runs-on: ${{ matrix.operating-system }} strategy: matrix: - #operating-system: [macos-latest, ubuntu-latest, windows-latest] - operating-system: [ubuntu-latest] + operating-system: [macos-latest, ubuntu-latest, windows-latest] ocaml-version: [ '4.08.0' ] steps: - - uses: actions/checkout@master + - uses: actions/checkout@main - uses: avsm/setup-ocaml@master with: ocaml-version: ${{ matrix.ocaml-version }} diff --git a/README.md b/README.md index 1d360c32..638d48ba 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# OCaml-containers 📦 [![Build Status](https://travis-ci.org/c-cube/ocaml-containers.svg?branch=master)](https://travis-ci.org/c-cube/ocaml-containers) +# OCaml-containers 📦 [![Build Status](https://travis-ci.org/c-cube/ocaml-containers.svg?branch=master)](https://travis-ci.org/c-cube/ocaml-containers) ![build gh](https://github.com/c-cube/ocaml-containers/workflows/build/badge.svg) A modular, clean and powerful extension of the OCaml standard library. From fa1f6170d1b756437df1ad95503686bcbcd2f92f Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Wed, 22 Jul 2020 18:17:38 -0400 Subject: [PATCH 3/3] chore: github actions: only run tests on linux --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0ebc1a4a..5081ff2e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,5 +16,9 @@ jobs: - run: opam pin -n . - run: opam depext -yt containers containers-data containers-thread - run: opam install -t . --deps-only + if: ${{ job.os == 'Linux' }} + - run: opam install . --deps-only # no test deps + if: ${{ job.os != 'Linux' }} - run: opam exec -- dune build - run: opam exec -- dune runtest + if: ${{ job.os == 'Linux' }}