From 1e46f86c9d9ac441aee751ed85af259a1c9c2f86 Mon Sep 17 00:00:00 2001 From: Sora Morimoto Date: Sun, 21 Jul 2024 18:36:04 +0900 Subject: [PATCH] Update GitHub Actions Signed-off-by: Sora Morimoto --- .github/dependabot.yml | 6 ++++++ .github/workflows/test.yml | 18 ++++++++---------- 2 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..ca79ca5b --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d7a39504..66571519 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,21 +4,19 @@ jobs: test: strategy: matrix: - operating-system: [ubuntu-latest] - ocaml-version: [4.12.1,4.13.1,4.14.1] - name: OCaml ${{ matrix.ocaml-version }} - runs-on: ${{ matrix.operating-system }} + ocaml-compiler: ["4.12", "4.13", "4.14"] + name: OCaml ${{ matrix.ocaml-compiler }} + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: ocaml/setup-ocaml@v2 + - uses: actions/checkout@v4 + - uses: ocaml/setup-ocaml@v3 with: - ocaml-compiler: ${{ matrix.ocaml-version }} + ocaml-compiler: ${{ matrix.ocaml-compiler }} opam-local-packages: | + *.opam !ocaml-solo5-cross-aarch64.opam - - name: Pin package - run: opam pin add -n -t -y ocaml-solo5 . - name: Install ocaml-solo5 and dune - run: opam depext -iyt ocaml-solo5 conf-libseccomp dune + run: opam install ocaml-solo5 conf-libseccomp dune - name: Compile example with hvt run: MODE=hvt opam exec -- dune build --root example - name: Compile example with spt