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",
|
cc: "gcc",
|
||||||
cxx: "g++",
|
cxx: "g++",
|
||||||
generators: "Ninja",
|
generators: "Ninja",
|
||||||
double_precision: false
|
double_precision: false,
|
||||||
|
coverage: false
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Linux / GCC (Release, Single Precision)",
|
name: "Linux / GCC (Release, Single Precision)",
|
||||||
|
@ -34,7 +35,28 @@ jobs:
|
||||||
cc: "gcc",
|
cc: "gcc",
|
||||||
cxx: "g++",
|
cxx: "g++",
|
||||||
generators: "Ninja",
|
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)",
|
name: "Linux / Clang (Debug, Single Precision)",
|
||||||
|
@ -43,7 +65,18 @@ jobs:
|
||||||
cc: "clang",
|
cc: "clang",
|
||||||
cxx: "clang++",
|
cxx: "clang++",
|
||||||
generators: "Ninja",
|
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:
|
steps:
|
||||||
|
@ -92,6 +125,7 @@ jobs:
|
||||||
-B build \
|
-B build \
|
||||||
-DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
|
-DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
|
||||||
-DRP3D_DOUBLE_PRECISION_ENABLED=${{ matrix.config.double_precision }} \
|
-DRP3D_DOUBLE_PRECISION_ENABLED=${{ matrix.config.double_precision }} \
|
||||||
|
-DRP3D_CODE_COVERAGE_ENABLED=${{ matrix.config.coverage }}
|
||||||
-DRP3D_COMPILE_TESTS=True \
|
-DRP3D_COMPILE_TESTS=True \
|
||||||
-G "${{ matrix.config.generators }}" \
|
-G "${{ matrix.config.generators }}" \
|
||||||
|
|
||||||
|
@ -124,3 +158,9 @@ jobs:
|
||||||
ls -la build_hello_world
|
ls -la build_hello_world
|
||||||
./build_hello_world/helloworld
|
./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