Skip to content

github: enable CI for for 8.3 and 8.4 lcm branch #143

github: enable CI for for 8.3 and 8.4 lcm branch

github: enable CI for for 8.3 and 8.4 lcm branch #143

Workflow file for this run

name: Build and test (8.3)
on:
push:
branches:
- "6.99-lcm"
tags:
- "*"
pull_request:
branches:
- "6.99-lcm"
jobs:
build:
name: Build and test
strategy:
fail-fast: false
matrix:
ocaml-version: ["4.14.2"]
runs-on: ["ubuntu-22.04"]
experimental: [false]
runs-on: ${{ matrix.runs-on }}
env:
OCAML_VERSION: ${{ matrix.ocaml-version }}
steps:
- name: Update apt cache
run: sudo apt-get update
shell: bash
- name: Checkout
uses: actions/checkout@v4
- name: Free space
run: sudo rm -rf /usr/local/lib/android
- name: Use disk with more space for TMPDIR and XDG_CACHE_HOME
shell: bash
run: |
df -h || true
export TMPDIR="/mnt/build/tmp"
export XDG_CACHE_HOME="/mnt/build/cache"
sudo mkdir -p "${TMPDIR}" "${XDG_CACHE_HOME}"
sudo chown "$(id -u):$(id -g)" "${TMPDIR}" "${XDG_CACHE_HOME}"
echo "TMPDIR=${TMPDIR}" >>"$GITHUB_ENV"
echo "XDG_CACHE_HOME=${XDG_CACHE_HOME}" >>"$GITHUB_ENV"
- name: Use ocaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-version }}
opam-repositories: |
xs-opam: "."
opam-pin: false
dune-cache: true
env:
DUNE_CACHE_STORAGE_MODE: copy
- name: update opam metadata and packages (dune)
run: opam update --upgrade
- name: Check whether there are packages with more than a version
run: tools/no-duplicates-check.bash
- name: Check whether there are unused packages
run: tools/find-unused-packages.sh
- name: Check whether there are unlicensed packages
run: tools/license-check.sh
- name: Build xs-toolstack, test its dependencies
run: |
opam list -s --required-by xs-toolstack | xargs opam install -t
env:
# OPAMCOLOR is set to "always" by default and it breaks piping
OPAMCOLOR: NEVER
OPAMERRLOGLEN: 10000
- name: Install developer tools
run: opam install dev-tools
- name: Print disk usage
shell: bash
run: df -h || true