Skip to content

A couple of misc changes for LIFE #180

A couple of misc changes for LIFE

A couple of misc changes for LIFE #180

Workflow file for this run

name: Main workflow
on:
pull_request:
push:
branches:
- main
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON
env:
RUNC_VERSION: v1.1.4
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- 5.1.0
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- run: opam install . --deps-only --with-test
- run: opam exec -- dune build @install @runtest
- name: Cache runc
id: cache-runc
uses: actions/cache@v3
with:
path: /usr/local/bin/runc
key: ${{ env.RUNC_VERSION }}
- name: Download runc
if: steps.cache-runc.outputs.cache-hit != 'true'
run: |
sudo wget https://github.com/opencontainers/runc/releases/download/$RUNC_VERSION/runc.amd64 -O /usr/local/bin/runc
- run: $GITHUB_WORKSPACE/src/test/ci.sh rsync_copy