Working on Github Actions
This commit is contained in:
parent
bf18b05261
commit
32ef6a7da4
46
.github/workflows/build-and-test.yml
vendored
46
.github/workflows/build-and-test.yml
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user