-
Notifications
You must be signed in to change notification settings - Fork 8
79 lines (67 loc) · 1.94 KB
/
build_and_test.yml
File metadata and controls
79 lines (67 loc) · 1.94 KB
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
name: Building and Testing
on:
pull_request:
branches:
- master
schedule:
- cron: '0 1 * * *'
jobs:
build-and-test-linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
compiler: [g++, clang++, icpx]
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- name: Install valgrind
run: |
sudo apt-get update
sudo apt-get install valgrind
- name: Install clang
if: ${{ matrix.compiler == 'clang++' }}
run: |
sudo apt-get install clang
- name: Install intel compiler
if: "contains(matrix.compiler, 'icp')"
run: |
# see https://software.intel.com/content/www/us/en/develop/articles/installing-intel-oneapi-toolkits-via-apt.html#pkgtable
cd /tmp
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
sudo apt-get update
sudo apt-get install intel-oneapi-compiler-dpcpp-cpp
- name: Building
run: |
if [ ${{ matrix.compiler }} = icpc ] || [ ${{ matrix.compiler }} = icpx ]; then
source /opt/intel/oneapi/setvars.sh
fi
export CXX=${{ matrix.compiler }}
cmake -H"." -DVTU11_ENABLE_TESTS=ON -B"build"
cmake --build "build" -j2
- name: Run tests
shell: bash
run: |
cd build
ctest -T memcheck
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, macOS-latest]
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- name: Building
run: |
cmake -H"." -DVTU11_ENABLE_TESTS=ON -B"build"
cmake --build "build"
- name: Run tests
shell: bash
run: |
cd build
ctest