-
Notifications
You must be signed in to change notification settings - Fork 4
73 lines (65 loc) · 1.7 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
68
69
70
71
72
73
name: CI
on:
push:
branches:
- main
pull_request:
branches: [ "main" ]
jobs:
Linux:
name: build-linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Installing Jinja2
run: python -m pip install Jinja2
- name: Installing pytest
run: python -m pip install pytest
- name: Update submodules (Linux)
run: |
git submodules update --init
git submules foreach 'git checkout main'
- name: Running cmake (Linux)
run: |
ls ${{github.workspace}}
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_FMA_INTRINSIC=1 ..
- name: Build Solution (Linux)
run: |
cd build
make
- name: Testing (Linux)
run: |
cd build
ctest -C Debug --output-on-failure
Windows:
name: build-windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Installing Jinja2
run: python -m pip install Jinja2
- name: List python modules
run: pip list
- name: Installing pytest
run: python -m pip install pytest
- name: Running cmake (Windows)
run: |
cmake -DCMAKE_BUILD_TYPE=Debug .
- name: Build Solution (Windows)
run: |
cmake --build .
- name: Testing (Windows)
run: |
ctest -C Debug --output-on-failure