-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (53 loc) · 1.56 KB
/
main.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
name: tests
on:
- push
- pull_request
jobs:
build:
name: clingcon ${{ matrix.python-version }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-2019']
python-version: ['3.7']
include:
- os: 'ubuntu-latest'
generator: 'Ninja'
build_type: 'Debug'
channels: 'potassco/label/dev'
env_file: '.github/linux-env.yml'
- os: 'macos-latest'
generator: 'Ninja'
build_type: 'Debug'
env_file: '.github/generic-env.yml'
- os: 'windows-2019'
generator: 'Visual Studio 16 2019'
build_type: 'Release'
env_file: '.github/generic-env.yml'
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: setup miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
activate-environment: clingcon
python-version: ${{ matrix.python-version }}
environment-file: ${{ matrix.env_file }}
- name: print info
shell: bash -l {0}
run: |
env
conda info
conda list
- name: build and test
shell: bash -l {0}
run: >
ctest
--build-config "${{ matrix.build_type }}"
--build-generator "${{ matrix.generator }}"
--build-and-test . build
--build-options -DCLINGCON_BUILD_TESTS=On
--test-command ctest -V --build-config "${{ matrix.build_type }}"