-
Notifications
You must be signed in to change notification settings - Fork 21
68 lines (55 loc) · 1.68 KB
/
build.yaml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: CI Build
on:
schedule:
- cron: "0 3 * * 0"
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
env:
HOLBA_OPT_DIR: /home/runner/cache
HOLBA_BOT_GITHUB_TOKEN: 'comment. see scripts/ci/post-comment-on-PR.sh, use github actions secrets'
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-22.04']
polyml: [{version: 'PREPACKAGED'}, {version: 'v5.9.1', heapless: '1'}]
z3: ['4.13.0']
hol4: ['trindemossen-1']
env:
HOLBA_POLYML_VERSION: ${{ matrix.polyml.version }}
HOLBA_POLYML_HEAPLESS: ${{ matrix.polyml.heapless }}
HOLBA_Z3_VERSION: ${{ matrix.z3 }}
HOLBA_Z3_ASSET_SUFFIX: '-x64-glibc-2.35.zip'
HOLBA_HOL4_VERSION: ${{ matrix.hol4 }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache dependencies
id: cache-deps
uses: actions/cache@v2
with:
path: |
${{ env.HOLBA_OPT_DIR }}
key: os-${{ matrix.os }}_polyml-${{ matrix.polyml.version }}_z3-${{ matrix.z3 }}_hol4-${{ matrix.hol4 }}
- name: Static analysis
timeout-minutes: 5
run: |
./scripts/ci/static-analysis.sh || echo "Static-analysis failed with status $?."
- name: Prepare cached dependencies
timeout-minutes: 35
run: |
./scripts/setup/install_base.sh
./scripts/setup/install_z3.sh
- name: Configure and compile
timeout-minutes: 35
run: |
./configure.sh
./scripts/ci/run_holmake.sh
- name: Run tests
timeout-minutes: 55
run: |
./scripts/ci/run_make.sh tests