Skip to content

Commit 4545d01

Browse files
authored
wip: set up CI (#13)
* wip: set up CI Will this work on the first try??? * wip: ignore _opam * wip: try to add the repositories during the setup-ocaml step * wip: make sure to include the default repo * wip: try explicitly setting the ocaml compiler * wip: temporarily disable tests * wip: test the check for ocaml 4 * wip: test out semantics of || * wip: fix string literal syntax * wip: try env variable * wip: set env using GITHUB_ENV * wip: use a | string, along with an echo * wip: use the actions-ocaml action * wip: add missing strategy * wip: use alpha1 release of ocaml-5
1 parent 517d22d commit 4545d01

File tree

5 files changed

+28
-0
lines changed

5 files changed

+28
-0
lines changed

.github/dependabot.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.github/workflows/ocaml.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build, test, and doc update
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
jobs:
8+
run:
9+
strategy:
10+
matrix:
11+
include:
12+
- ocaml-compiler: "ocaml-base-compiler.5.0.0~alpha1"
13+
with-doc: true
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: RedPRL/actions-ocaml@v2
18+
with:
19+
ocaml-compiler: ${{ matrix.ocaml-compiler }}
20+
with-doc: ${{ matrix.with-doc }}
21+
publish-doc-if-built: ${{ github.ref == 'refs/heads/main' }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ Temporary Items
107107
*.cmx
108108
*.cmxs
109109
*.cmxa
110+
_opam
110111

111112
# ocamlbuild working directory
112113
_build/
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)