-
Notifications
You must be signed in to change notification settings - Fork 90
45 lines (43 loc) · 1.29 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
name: hffix test
# Controls when the action will run. Triggers the workflow on push
on:
push:
pull_request:
# release:
# tags:
# - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
test:
runs-on:
- ubuntu-latest
strategy:
fail-fast: false
matrix:
compiler:
- cxx: "g++"
- cxx: "clang++"
flags:
- cxxflags: "-std=c++98"
- cxxflags: "-std=c++11"
- cxxflags: "-std=c++17"
# https://stackoverflow.com/questions/76859275/error-compiling-a-cpp-containing-stdchrono-errorstatic-constexpr-unsigned-fra
- cxxflags: "-std=c++20 -stdlib=libc++"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Boost
uses: MarkusJx/[email protected]
id: install-boost
with:
boost_version: 1.81.0
- name: Test
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
shell: bash
env:
CPLUS_INCLUDE_PATH: ${{steps.install-boost.outputs.BOOST_ROOT}}/include
LIBRARY_PATH: ${{steps.install-boost.outputs.BOOST_ROOT}}/lib
CXX: ${{matrix.compiler.cxx}}
CXXFLAGS: ${{matrix.flags.cxxflags}}
run: |
$CXX --version
make test