Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto committed Jul 23, 2024
1 parent 59961c1 commit a15c146
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 33 deletions.
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
53 changes: 43 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Main workflow
name: Builds, tests & co

on:
pull_request:
Expand All @@ -7,33 +7,66 @@ on:
# Prime the caches every Monday
- cron: 0 1 * * MON

permissions: read-all

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- windows-latest
- ubuntu-latest
ocaml-compiler:
- 4.13.x
- 5
- 4

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:
opam-repositories: |
opam-repository-mingw: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
default: https://github.com/ocaml/opam-repository.git
ocaml-compiler: ${{ matrix.ocaml-compiler }}

- run: opam install . --deps-only --with-test

- run: opam exec -- dune build

- run: opam exec -- dune runtest

examples:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
example:
- ping
- unikernel
mode:
- qubes
- unix
- virtio

defaults:
run:
working-directory: examples/${{ matrix.example }}

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

- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 4

- run: opam install mirage
- run: opam exec -- mirage configure -t ${{ matrix.mode }}
- run: opam exec -- dune runtest
- run: opam exec -- make depend
- run: opam exec -- make
11 changes: 0 additions & 11 deletions .travis-ci.sh

This file was deleted.

12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

0 comments on commit a15c146

Please sign in to comment.