-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 1.01 KB
/
ocaml-general.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: ocaml-general CI workflow
on: push
jobs:
build:
strategy:
fail-fast: false
matrix:
ocaml-version:
- 4.14.1
- 5.0.0
- 5.1.0
runs-on: ubuntu-latest
container:
image: ghcr.io/kxcinc/ocaml-general:${{ matrix.ocaml-version }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 2
# https://github.blog/2022-04-12-git-security-vulnerability-announced/
- name: Safe directory
run: git config --global --add safe.directory $GITHUB_WORKSPACE
- name: check OCaml version and workspace info
run: ./scripts/ci_print_env.sh
- run: ./scripts/ci_setup_ubuntu.sh
- name: Install dependencies
run: opam install . --yes --deps-only --with-test --verbose
- name: build & test
run: ./scripts/ci_run.sh
ocaml-general-checked:
needs: build
runs-on: ubuntu-latest
steps:
- run: echo "all set"