Working on Github Actions

This commit is contained in:
Daniel Chappuis 2021-08-04 15:36:44 +02:00
parent bf18b05261
commit 32ef6a7da4

View File

@ -25,7 +25,8 @@ jobs:
cc: "gcc",
cxx: "g++",
generators: "Ninja",
double_precision: false
double_precision: false,
coverage: false
}
- {
name: "Linux / GCC (Release, Single Precision)",
@ -34,7 +35,28 @@ jobs:
cc: "gcc",
cxx: "g++",
generators: "Ninja",
double_precision: false
double_precision: false,
coverage: false
}
- {
name: "Linux / GCC (Debug, Double Precision)",
os: ubuntu-latest,
build_type: "Debug",
cc: "gcc",
cxx: "g++",
generators: "Ninja",
double_precision: true,
coverage: false
}
- {
name: "Linux / GCC (Release, Double Precision)",
os: ubuntu-latest,
build_type: "Release",
cc: "gcc",
cxx: "g++",
generators: "Ninja",
double_precision: true,
coverage: false
}
- {
name: "Linux / Clang (Debug, Single Precision)",
@ -43,7 +65,18 @@ jobs:
cc: "clang",
cxx: "clang++",
generators: "Ninja",
double_precision: false
double_precision: false,
coverage: false
}
- {
name: "Code Coverage",
os: ubuntu-latest,
build_type: "Debug",
cc: "gcc",
cxx: "g++",
generators: "Ninja",
double_precision: false,
coverage: true
}
steps:
@ -92,6 +125,7 @@ jobs:
-B build \
-DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
-DRP3D_DOUBLE_PRECISION_ENABLED=${{ matrix.config.double_precision }} \
-DRP3D_CODE_COVERAGE_ENABLED=${{ matrix.config.coverage }}
-DRP3D_COMPILE_TESTS=True \
-G "${{ matrix.config.generators }}" \
@ -124,3 +158,9 @@ jobs:
ls -la build_hello_world
./build_hello_world/helloworld
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
path_to_write_report: ./coverage/codecov_report.txt
verbose: true