-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (43 loc) · 976 Bytes
/
oncici.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
name: OnCICI
on: [push]
jobs:
build:
name: Benchmarking
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [ [gcc,g++], [clang,clang++] ]
steps:
- uses: actions/checkout@master
- name: Building
env:
CC: ${{ matrix.compiler[0] }}
CXX: ${{ matrix.compiler[1] }}
run: |
mkdir build
cd build
cmake ..
make gbench
- name: Benchmarking
run: |
cd build
bin/gbench --benchmark_out=timings_${{ matrix.compiler[0] }}.txt --benchmark_out_format=console
- uses: actions/upload-artifact@v1
with:
name: Timings
path: build/timings_${{ matrix.compiler[0] }}.txt
test:
name: Testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Building
run: |
mkdir build
cd build
cmake ..
make tests
- name: Testing
run: |
cd build
bin/tests