-
Notifications
You must be signed in to change notification settings - Fork 14
32 lines (32 loc) · 1.03 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
name: build
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
cpp_compiler: [g++, g++-8, clang++]
include:
- c_compiler: gcc
- cpp_ompiler: g++-8
c_compiler: gcc-8
- cpp_compiler: clang++
c_compiler: clang
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 CC=${{ matrix.c_compiler }} CXX=${{ matrix.cpp_compiler }}
- run: ./check-gold.sh
- run: ./robsize 0 --superfast