-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (48 loc) · 1.06 KB
/
Copy pathoncici.yml
File metadata and controls
50 lines (48 loc) · 1.06 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
---
name: OnCICI
on:
push:
branches:
- master
jobs:
build:
name: Benchmarking
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [[gcc, g++], [clang, clang++]]
steps:
- uses: actions/checkout@v7
- name: Building
env:
CC: ${{ matrix.compiler[0] }}
CXX: ${{ matrix.compiler[1] }}
run: |
mkdir build
cd build
cmake ..
make bench
- name: Benchmarking
run: |
cd build
bin/bench | tee timings_${{ matrix.compiler[0] }}.txt
- uses: actions/upload-artifact@v7
with:
name: Timings_${{ matrix.compiler[0] }}
path: build/timings_${{ matrix.compiler[0] }}.txt
test:
name: Testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Building
run: |
mkdir build
cd build
cmake ..
make test_mine unit_tests
- name: Testing
run: |
cd build
bin/test_mine
bin/unit_tests