forked from tensor-compiler/taco
-
Notifications
You must be signed in to change notification settings - Fork 1
102 lines (93 loc) · 2.59 KB
/
buildandtest.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Build and Test
on:
push:
branches:
- master
- array_algebra
pull_request:
branches:
- master
- array_algebra
jobs:
build-test-cpu:
name: builds taco with no options for cpu and runs all tests
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: create_build
run: mkdir build
- name: cmake
run: cmake ..
working-directory: build
- name: make
run: make -j2
working-directory: build
- name: test
run: make test
env:
CTEST_OUTPUT_ON_FAILURE: 1
CTEST_PARALLEL_LEVEL: 2
working-directory: build
build-test-cpu-release:
name: builds taco release for cpu and runs all tests
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: create_build
run: mkdir build
- name: cmake
run: cmake -DCMAKE_BUILD_TYPE=Release ..
working-directory: build
- name: make
run: make -j2
working-directory: build
- name: test
run: make test
env:
CTEST_OUTPUT_ON_FAILURE: 1
CTEST_PARALLEL_LEVEL: 2
working-directory: build
build-test-cpu-openmp-python-asserts:
name: builds taco with compile-time asserts, openmp, and python and runs all tests
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: apt-get update
run: sudo apt-get update
- name: install numpy and scipy
run: sudo DEBIAN_FRONTEND=noninteractive apt-get install -y python3-numpy python3-scipy
- name: create_build
run: mkdir build
- name: cmake
run: cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DOPENMP=ON -DPYTHON=ON ..
working-directory: build
- name: make
run: make -j2
working-directory: build
- name: test
run: make test
env:
CTEST_OUTPUT_ON_FAILURE: 1
CTEST_PARALLEL_LEVEL: 2
working-directory: build
build-test-python-macos-clang:
name: builds taco and pytaco on macos with clang and runs all tests
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- name: install numpy and scipy
run: pip3 install numpy scipy
- name: create_build
run: mkdir build
- name: cmake
run: cmake -DCMAKE_BUILD_TYPE=Debug -DPYTHON=ON ..
working-directory: build
- name: make
run: make -j2
working-directory: build
- name: test
run: make test
env:
CTEST_OUTPUT_ON_FAILURE: 1
CTEST_PARALLEL_LEVEL: 2
working-directory: build