Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub Actions workflow #17

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .depend

This file was deleted.

6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
28 changes: 13 additions & 15 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: Main workflow
name: Builds, tests & co

on:
pull_request:
push:
schedule:
- cron: "0 13 * * 1" # Every Monday at 1PM UTC
# https://jasonet.co/posts/scheduled-actions/
- push
- pull_request

permissions: read-all

jobs:
build:
Expand All @@ -14,24 +13,23 @@ jobs:
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- 4.13.x
- macos-latest
- windows-latest

runs-on: ${{ matrix.os }}

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

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
ocaml-compiler: 4

# ideally it should be done by `opam install . --deps-only` but right now
# we have opam 1.x in the repo, and I'm not very optimistic to even try it
- run: opam depext conf-dbm -y
- run: opam install eliom ocsigen-toolkit cairo2 ocsipersist-dbm calendar syndic -y
- run: opam install cairo2 calendar conf-dbm eliom ocsigen-i18n ocsigen-ppx-rpc ocsigen-toolkit ocsipersist-dbm pgocaml_ppx syndic

- name: Compiling simple
run: opam exec -- make -C simple all
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
_build/
_client/
_deps/
_opam/
_server/
.depend
Loading