Skip to content

Commit

Permalink
--
Browse files Browse the repository at this point in the history
  • Loading branch information
marcpouzet committed Oct 28, 2024
1 parent f8c8de5 commit b9c5480
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build

on:
- push
- pull_request
- workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install OCaml dependencies
run: opam install -y graphics menhir alcotest

- name: Test examples
run: |
cd tests
dune test
29 changes: 29 additions & 0 deletions .github/workflows/opam.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Opam

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Use OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 5.2.0

- name: Install OCaml dependencies
run: |
opam depext alcotest menhir
opam install graphics alcotest menhir
- name: Build all examples
run: |
cd tests
opam exec -- dune test

0 comments on commit b9c5480

Please sign in to comment.