Skip to content

Commit 82bad3a

Browse files
authored
Merge pull request #519 from smorimoto/update-actions
Update GitHub Actions
2 parents 59961c1 + b6852b3 commit 82bad3a

File tree

4 files changed

+45
-33
lines changed

4 files changed

+45
-33
lines changed

.github/dependabot.yml

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: weekly

.github/workflows/main.yml

Lines changed: 39 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Main workflow
1+
name: Builds, tests & co
22

33
on:
44
pull_request:
@@ -7,33 +7,62 @@ on:
77
# Prime the caches every Monday
88
- cron: 0 1 * * MON
99

10+
permissions: read-all
11+
1012
jobs:
1113
build:
1214
strategy:
1315
fail-fast: false
1416
matrix:
1517
os:
1618
- macos-latest
17-
- windows-latest
19+
- ubuntu-latest
1820
ocaml-compiler:
19-
- 4.13.x
21+
- 5
22+
- 4
2023

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

2326
steps:
24-
- name: Checkout code
25-
uses: actions/checkout@v2
27+
- name: Checkout tree
28+
uses: actions/checkout@v4
2629

27-
- name: Use OCaml ${{ matrix.ocaml-compiler }}
28-
uses: ocaml/setup-ocaml@v2
30+
- name: Set-up OCaml
31+
uses: ocaml/setup-ocaml@v3
2932
with:
30-
opam-repositories: |
31-
opam-repository-mingw: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
32-
default: https://github.com/ocaml/opam-repository.git
3333
ocaml-compiler: ${{ matrix.ocaml-compiler }}
3434

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

3737
- run: opam exec -- dune build
3838

3939
- run: opam exec -- dune runtest
40+
41+
unikernel-example:
42+
strategy:
43+
fail-fast: false
44+
matrix:
45+
mode:
46+
- qubes
47+
- unix
48+
- virtio
49+
50+
defaults:
51+
run:
52+
working-directory: examples/unikernel
53+
54+
runs-on: ubuntu-latest
55+
56+
steps:
57+
- name: Checkout tree
58+
uses: actions/checkout@v4
59+
60+
- name: Set-up OCaml
61+
uses: ocaml/setup-ocaml@v3
62+
with:
63+
ocaml-compiler: 4
64+
65+
- run: opam install mirage
66+
- run: opam exec -- mirage configure -t ${{ matrix.mode }}
67+
- run: opam exec -- make depend
68+
- run: opam exec -- make

.travis-ci.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)