-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* dune-project - add missing deps * ci - first setup * jsoo - make jsoo/unit_test/dune optional * ci - give-up on matrix-check now * ci neat - fix name: check -> quick-check
- Loading branch information
Showing
6 changed files
with
120 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# name: Matrix-Check | ||
|
||
# on: | ||
# push: | ||
# branches: [main] | ||
# pull_request: | ||
# types: [opened, synchronize, reopened, ready_for_review] | ||
|
||
# jobs: | ||
# matrix-check: | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# os: | ||
# - ubuntu-latest | ||
# ocaml-version: | ||
# - 4.08.1 | ||
# - 4.13.1 | ||
# - 4.14.0 | ||
# - 5.0.0 | ||
# node-version: | ||
# # - lts/fermium # v14 Maintenance LTS | ||
# - lts/gallium # v16 Active LTS | ||
# # - lts/hydrogen # v18 Active LTS | ||
|
||
# if: github.event.pull_request.draft == false | ||
# runs-on: ${{ matrix.os }} | ||
|
||
# steps: | ||
# - name: Checkout code | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# submodules: recursive | ||
# fetch-depth: 2 | ||
|
||
# - name: Use OCaml ${{ matrix.ocaml-version }} | ||
# uses: ocaml/setup-ocaml@v2 | ||
# with: | ||
# ocaml-compiler: ${{ matrix.ocaml-version }} | ||
|
||
# - name: Cache OPAM switch | ||
# id: cache-switch | ||
# uses: actions/cache@v3 | ||
# with: | ||
# path: _opam | ||
# key: v1-${{ runner.os }}-${{ matrix.ocaml-version }}-opam-switch | ||
|
||
# - name: Check OCaml version and workspace info | ||
# run: ./scripts/ci_print_env.sh | ||
|
||
# - name: Install dependencies | ||
# run: opam install -y . --deps-only --with-test | ||
|
||
# - name: Perform dune build | ||
# run: opam exec -- dune build | ||
|
||
# - name: Perform dune runtest | ||
# run: opam exec -- dune runtest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Quick-Check | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
quick-check: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ocaml-version: | ||
- 4.13.1 | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/kxcteam/ocaml-general:${{ matrix.ocaml-version }} | ||
timeout-minutes: 25 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
# https://github.blog/2022-04-12-git-security-vulnerability-announced/ | ||
- name: Set safe directory | ||
run: git config --global --add safe.directory $GITHUB_WORKSPACE | ||
|
||
- name: Initialize submodules | ||
run: git submodule update --init | ||
|
||
- name: Check OCaml version and workspace info | ||
run: ./scripts/ci_print_env.sh | ||
|
||
- name: Install OPAM dependencies | ||
run: | | ||
opam install -y . --deps-only --with-test || (opam update && opam install -y . --deps-only --with-test) | ||
- name: Perform dune build | ||
run: opam exec -- dune build | ||
|
||
- name: Perform dune runtest | ||
run: opam exec -- dune runtest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
(executables | ||
(names jsoo_unit_tests) | ||
(optional) | ||
(libraries | ||
alcotest qcheck | ||
kxclib kxclib_jsoo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
echo ">>> uname -a" | ||
uname -a | ||
|
||
echo && echo ">>> OCaml --version" | ||
opam exec -- ocamlc --version | ||
|
||
echo && echo ">>> git status" | ||
git show HEAD^..HEAD --stat || git show HEAD --stat | ||
|
||
echo && echo ">>> git ls-files" | ||
git ls-files |