-
Notifications
You must be signed in to change notification settings - Fork 27
39 lines (38 loc) · 1.25 KB
/
build.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
name: build
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
cpp_compiler: [g++, g++-7, g++-8, g++-9, clang++, clang++-9]
include:
- c_compiler: gcc
- cpp_compiler: g++-7
c_compiler: gcc-7
- cpp_compiler: g++-8
c_compiler: gcc-8
- cpp_compiler: g++-9
c_compiler: gcc-9
- cpp_compiler: clang++
c_compiler: clang
- cpp_compiler: clang++-9
c_compiler: clang-9
steps:
- name: Install C Compiler
if: ${{ startsWith(matrix.c_compiler, 'gcc-') || startsWith(matrix.c_compiler, 'clang-') }}
run: |
sudo apt-get update
sudo apt-get install -y ${{ matrix.c_compiler }}
- name: Install C++ Compiler
if: ${{ startsWith(matrix.cpp_compiler, 'g++-') || startsWith(matrix.cpp_compiler, 'clang++-') }}
run: |
sudo apt-get update
sudo apt-get install -y ${{ matrix.cpp_compiler }}
- uses: actions/checkout@v2
- run: lscpu
- run: make -j2 CC=${{ matrix.c_compiler }} CXX=${{ matrix.cpp_compiler }}
- run: ./unit-test
- run: ./avx-turbo --no-pin --max-threads 2