-
Notifications
You must be signed in to change notification settings - Fork 24
42 lines (35 loc) · 1.29 KB
/
yangtze-lcm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build and test (Yangtze, scheduled)
on:
schedule:
# run daily
- cron: '51 2 * * *'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Update apt cache
run: sudo apt-get update
- name: Checkout
uses: actions/checkout@v4
with:
ref: 'release/yangtze/lcm'
- name: Check whether there are unlicensed packages
run: tools/license-check.sh
- name: Use ocaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: "4.08.1"
opam-repositories: |
xs-opam: "."
opam-disable-sandboxing: true
opam-pin: false
- name: Build xs-toolstack, test its dependencies
# opam install may ignore installing depexts sometimes
# OPAMCOLOR is set to "always" by default and it breaks piping
run: |
OPAMERRLOGLEN=10000 OPAMCOLOR=NEVER opam list -s --required-by xs-toolstack | xargs opam depext -tu
OPAMERRLOGLEN=10000 OPAMCOLOR=NEVER opam list -s --required-by xs-toolstack | xargs opam install -t
- name: Uninstall unversioned packages
# This should purge them from the cache, unversioned package have
# 'master' as its version
run: opam list | awk -F " " '$2 == "master" { print $1 }' | xargs opam uninstall