github: experiment, take 2
This commit is contained in:
parent
4467586ca0
commit
40a8944258
1 changed files with 7 additions and 9 deletions
16
.github/workflows/cmake-single-platform.yml
vendored
16
.github/workflows/cmake-single-platform.yml
vendored
|
|
@ -26,14 +26,13 @@ jobs:
|
|||
# install catch2. see [[https://stackoverflow.com/questions/57982945/how-to-apt-get-install-in-a-github-actions-workflow]]
|
||||
run: sudo apt-get install -y catch2
|
||||
|
||||
|
||||
- name: Clone indentlog
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: Rconybea/indentlog
|
||||
path: repo/indentlog
|
||||
|
||||
|
||||
|
||||
- name: Configure indentlog
|
||||
# configure cmake for indentlog in dedicated build directory.
|
||||
run: cmake -B ${{github.workspace}}/build_indentlog -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/local repo/indentlog
|
||||
|
|
@ -46,18 +45,17 @@ jobs:
|
|||
run: cmake --install ${{github.workspace}}/build_indentlog
|
||||
|
||||
|
||||
|
||||
- name: Configure refcnt
|
||||
- name: Configure reflect
|
||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
||||
run: cmake -B ${{github.workspace}}/build_refcnt -DCMAKE_PREFIX_PATH=${{github.workspace}}/local -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/local -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} --debug-find
|
||||
run: cmake -B ${{github.workspace}}/build_reflect -DCMAKE_PREFIX_PATH=${{github.workspace}}/xyz -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/local -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} --debug-find
|
||||
|
||||
- name: Build refcnt
|
||||
- name: Build reflect
|
||||
# Build your program with the given configuration
|
||||
run: cmake --build ${{github.workspace}}/build_refcnt --config ${{env.BUILD_TYPE}}
|
||||
run: cmake --build ${{github.workspace}}/build_reflect --config ${{env.BUILD_TYPE}}
|
||||
|
||||
- name: Test refcnt
|
||||
working-directory: ${{github.workspace}}/build_refcnt
|
||||
- name: Test reflect
|
||||
working-directory: ${{github.workspace}}/build_reflect
|
||||
# Execute tests defined by the CMake configuration.
|
||||
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
|
||||
run: ctest -C ${{env.BUILD_TYPE}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue