-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 961 Bytes
/
ci.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
name: Tinyopt CI
on:
push: { branches: [ main ] }
pull_request: { branches: [ main ] }
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-22.04 ]
cxx: [ g++-10, g++-13, clang++-13, clang++-15 ]
cxxstd: [ c++14, c++17, c++20 ]
include:
- os: "macos-latest"
cxx: "clang++"
cxxstd: "c++14"
env:
CXX: ${{ matrix.cxx }}
CXXSTD: ${{ matrix.cxxstd }}
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Build tests and examples.
run: |
${CXX} --version
mkdir build
cd build
make -j4 CXXSTD=${CXXSTD} -f ../Makefile
- name: Run unit tests.
run: build/unit