More CI runs
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
This commit is contained in:
parent
c4552bf5f1
commit
662174bc1b
1 changed files with 84 additions and 21 deletions
105
.github/workflows/cpp_tests.yml
vendored
105
.github/workflows/cpp_tests.yml
vendored
|
|
@ -7,27 +7,90 @@ on:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cpp-tests:
|
cpp-tests-debug-with-debug-layers:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
container: axsauze/kompute-builder:0.3
|
container: axsauze/kompute-builder:0.3
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: false
|
||||||
- name: configure-cpp
|
- name: "[Release g++] Build & Test"
|
||||||
run: |
|
env:
|
||||||
cmake -Bbuild/ \
|
VK_ICD_FILENAMES: "/swiftshader/vk_swiftshader_icd.json"
|
||||||
-DCMAKE_BUILD_TYPE=Debug \
|
uses: ashutoshvarma/action-cmake-build@master
|
||||||
-DKOMPUTE_OPT_INSTALL=0 \
|
with:
|
||||||
-DKOMPUTE_OPT_REPO_SUBMODULE_BUILD=1 \
|
build-dir: ${{github.workspace}}/build
|
||||||
-DKOMPUTE_OPT_BUILD_TESTS=1 \
|
source-dir: ${{github.workspace}}
|
||||||
-DKOMPUTE_OPT_ENABLE_SPDLOG=1
|
cc: gcc
|
||||||
- name: build-cpp
|
cxx: g++
|
||||||
run: |
|
build-type: Debug
|
||||||
make mk_build_tests
|
run-test: true
|
||||||
- name: test-cpp
|
ctest-options: -V
|
||||||
run: |
|
configure-options: -DKOMPUTE_OPT_BUILD_TESTS=ON -DKOMPUTE_OPT_DISABLE_VK_DEBUG_LAYERS=OFF -DKOMPUTE_OPT_ENABLE_SPDLOG=1
|
||||||
export VK_ICD_FILENAMES=/swiftshader/vk_swiftshader_icd.json
|
|
||||||
make mk_run_tests
|
cpp-tests-release-with-debug-layers:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: axsauze/kompute-builder:0.3
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: false
|
||||||
|
- name: "[Release g++] Build & Test"
|
||||||
|
env:
|
||||||
|
VK_ICD_FILENAMES: "/swiftshader/vk_swiftshader_icd.json"
|
||||||
|
uses: ashutoshvarma/action-cmake-build@master
|
||||||
|
with:
|
||||||
|
build-dir: ${{github.workspace}}/build
|
||||||
|
source-dir: ${{github.workspace}}
|
||||||
|
cc: gcc
|
||||||
|
cxx: g++
|
||||||
|
build-type: Release
|
||||||
|
run-test: true
|
||||||
|
ctest-options: -V
|
||||||
|
configure-options: -DKOMPUTE_OPT_BUILD_TESTS=ON -DKOMPUTE_OPT_DISABLE_VK_DEBUG_LAYERS=OFF -DKOMPUTE_OPT_ENABLE_SPDLOG=1
|
||||||
|
|
||||||
|
cpp-tests-debug-without-debug-layers:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: axsauze/kompute-builder:0.3
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: false
|
||||||
|
- name: "[Release g++] Build & Test"
|
||||||
|
env:
|
||||||
|
VK_ICD_FILENAMES: "/swiftshader/vk_swiftshader_icd.json"
|
||||||
|
uses: ashutoshvarma/action-cmake-build@master
|
||||||
|
with:
|
||||||
|
build-dir: ${{github.workspace}}/build
|
||||||
|
source-dir: ${{github.workspace}}
|
||||||
|
cc: gcc
|
||||||
|
cxx: g++
|
||||||
|
build-type: Debug
|
||||||
|
run-test: true
|
||||||
|
ctest-options: -V
|
||||||
|
configure-options: -DKOMPUTE_OPT_BUILD_TESTS=ON -DKOMPUTE_OPT_DISABLE_VK_DEBUG_LAYERS=ON -DKOMPUTE_OPT_ENABLE_SPDLOG=1
|
||||||
|
|
||||||
|
cpp-tests-release-without-debug-layers:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: axsauze/kompute-builder:0.3
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: false
|
||||||
|
- name: "[Release g++] Build & Test"
|
||||||
|
env:
|
||||||
|
VK_ICD_FILENAMES: "/swiftshader/vk_swiftshader_icd.json"
|
||||||
|
uses: ashutoshvarma/action-cmake-build@master
|
||||||
|
with:
|
||||||
|
build-dir: ${{github.workspace}}/build
|
||||||
|
source-dir: ${{github.workspace}}
|
||||||
|
cc: gcc
|
||||||
|
cxx: g++
|
||||||
|
build-type: Release
|
||||||
|
run-test: true
|
||||||
|
ctest-options: -V
|
||||||
|
configure-options: -DKOMPUTE_OPT_BUILD_TESTS=ON -DKOMPUTE_OPT_DISABLE_VK_DEBUG_LAYERS=ON -DKOMPUTE_OPT_ENABLE_SPDLOG=1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue