From b92fb820fa2dba217e720aa1f53d31586de771eb Mon Sep 17 00:00:00 2001 From: Adrien Champion Date: Tue, 19 Jan 2021 11:35:03 +0100 Subject: [PATCH 1/4] (trying to) activate github action --- .github/workflow/ci.yml | 40 +++++++++++++++++++++++++++++++++++++++ .github/workflow/setup.sh | 21 ++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 .github/workflow/ci.yml create mode 100644 .github/workflow/setup.sh diff --git a/.github/workflow/ci.yml b/.github/workflow/ci.yml new file mode 100644 index 0000000..fe7869e --- /dev/null +++ b/.github/workflow/ci.yml @@ -0,0 +1,40 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [ master ] + pull_request: + branches: [ master ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest] + ocaml-version: [ 4.11.1 ] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + + - name: Use OCaml ${{ matrix.ocaml-version }} + uses: avsm/setup-ocaml@v1 + with: + ocaml-version: ${{ matrix.ocaml-version }} + + - name: Setup + run: ./.github/workflows/setup.sh + + - name: Compile + run: eval $(opam env) && omake diff --git a/.github/workflow/setup.sh b/.github/workflow/setup.sh new file mode 100644 index 0000000..d2632b9 --- /dev/null +++ b/.github/workflow/setup.sh @@ -0,0 +1,21 @@ +#! /bin/bash + +opam --version +ocamlc --version + +eval $(opam config env) +opam update +eval $(opam env) + +echo "installing dependencies" +opam install -y \ + jbuilder.1.0+beta20.2 menhir.20201216 omake.0.10.3 \ + core.v0.14.0 ppx_compare.v0.14.0 ppx_deriving.5.1 ppx_fields_conv.v0.14.1 \ + ppx_hash.v0.14.0 ppx_sexp_conv.v0.14.1 ppx_variants_conv.v0.14.1 \ + re2.v0.14.0 +echo "done installing dependencies" +eval $(opam env) + +opam --version +ocamlc --version +omake --version \ No newline at end of file From e4815b55348cb8e0ed007ed16f3b002da1bbfd44 Mon Sep 17 00:00:00 2001 From: Adrien Champion Date: Tue, 19 Jan 2021 11:38:23 +0100 Subject: [PATCH 2/4] Create ci.yml --- .github/workflows/ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..fe7869e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [ master ] + pull_request: + branches: [ master ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest] + ocaml-version: [ 4.11.1 ] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + + - name: Use OCaml ${{ matrix.ocaml-version }} + uses: avsm/setup-ocaml@v1 + with: + ocaml-version: ${{ matrix.ocaml-version }} + + - name: Setup + run: ./.github/workflows/setup.sh + + - name: Compile + run: eval $(opam env) && omake From 17b2eec3c934d30740df4abcaa3c4ef8a28a8cb5 Mon Sep 17 00:00:00 2001 From: Adrien Champion Date: Tue, 19 Jan 2021 11:49:11 +0100 Subject: [PATCH 3/4] fixed CI problem --- .github/workflow/ci.yml | 40 ------------------------ .github/{workflow => workflows}/setup.sh | 0 2 files changed, 40 deletions(-) delete mode 100644 .github/workflow/ci.yml rename .github/{workflow => workflows}/setup.sh (100%) diff --git a/.github/workflow/ci.yml b/.github/workflow/ci.yml deleted file mode 100644 index fe7869e..0000000 --- a/.github/workflow/ci.yml +++ /dev/null @@ -1,40 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: CI - -# Controls when the action will run. -on: - # Triggers the workflow on push or pull request events but only for the master branch - push: - branches: [ master ] - pull_request: - branches: [ master ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - build: - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest, macos-latest] - ocaml-version: [ 4.11.1 ] - - runs-on: ${{ matrix.os }} - - steps: - - uses: actions/checkout@v2 - - - name: Use OCaml ${{ matrix.ocaml-version }} - uses: avsm/setup-ocaml@v1 - with: - ocaml-version: ${{ matrix.ocaml-version }} - - - name: Setup - run: ./.github/workflows/setup.sh - - - name: Compile - run: eval $(opam env) && omake diff --git a/.github/workflow/setup.sh b/.github/workflows/setup.sh similarity index 100% rename from .github/workflow/setup.sh rename to .github/workflows/setup.sh From 5072577b94d83fe88ed61dea7182affee4dca3e9 Mon Sep 17 00:00:00 2001 From: Adrien Champion Date: Mon, 15 Feb 2021 14:28:29 +0100 Subject: [PATCH 4/4] making CI setup script u+x --- .github/workflows/setup.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 .github/workflows/setup.sh diff --git a/.github/workflows/setup.sh b/.github/workflows/setup.sh old mode 100644 new mode 100755