-
Notifications
You must be signed in to change notification settings - Fork 9
67 lines (55 loc) · 1.63 KB
/
ci.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
on: [push, pull_request]
name: CI
jobs:
build:
runs-on: ubuntu-latest
# cancel already running jobs for the same branch/pr/tag
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v2
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "cvc5_pythonic_api"
version: "23.7.0"
- uses: actions/checkout@v2
with:
repository: cvc5/cvc5
path: cvc5
- name: Install dependencies
uses: ./cvc5/.github/actions/install-dependencies
with:
with-documentation: false
with-python-bindings: true
- name: Setup ccache cache
uses: actions/cache@v2
with:
path: ccache-dir
key: cvc5-pythonic-api-ccache-${{ github.sha }}
restore-keys: cvc5-pythonic-api-ccache-
- name: Configure ccache
shell: bash
run: |
ccache --set-config=cache_dir=${{ github.workspace }}/ccache-dir
ccache --set-config=compression=true
ccache --set-config=compression_level=6
ccache -M 500M
ccache -z
- name: Setup dependencies cache
uses: actions/cache@v2
with:
path: cvc5/build/deps
key: cvc5-pythonic-api-deps-${{ hashFiles('cvc5/cmake/**') }}-${{ hashFiles('.github/**') }}
- name: Build cvc5
run: |
cd cvc5/
./configure.sh production --auto-download --python-bindings --cocoa
cd build/
make -j${{ env.num_proc }}
- name: Test cvc5 pythonic API
run: |
make test
env:
PYTHONPATH: cvc5/build/src/api/python:.