github: big revert -- adopt refcnt .yml, try to build up from there
This commit is contained in:
parent
2bd1b19388
commit
4467586ca0
1 changed files with 13 additions and 42 deletions
57
.github/workflows/cmake-single-platform.yml
vendored
57
.github/workflows/cmake-single-platform.yml
vendored
|
|
@ -20,9 +20,11 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Install catch2
|
||||
run: sudo apt-get install -y catch2
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install catch2
|
||||
# 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
|
||||
|
|
@ -30,63 +32,32 @@ jobs:
|
|||
repository: Rconybea/indentlog
|
||||
path: repo/indentlog
|
||||
|
||||
|
||||
|
||||
- name: Configure indentlog
|
||||
run: cmake -B ${{github.workspace}}/build_indentlog -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/local --debug-find repo/indentlog
|
||||
# configure cmake for indentlog in dedicated build directory.
|
||||
run: cmake -B ${{github.workspace}}/build_indentlog -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/local repo/indentlog
|
||||
|
||||
- name: Build indentlog
|
||||
run: cmake --build ${{github.workspace}}/build_indentlog --config ${{env.BUILD_TYPE}}
|
||||
|
||||
- name: Install indentlog
|
||||
# install into ${{github.workspace}}/local
|
||||
run: cmake --install ${{github.workspace}}/build_indentlog
|
||||
|
||||
|
||||
- name: Clone subsys
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: Rconybea/subsys
|
||||
path: repo/subsys
|
||||
|
||||
- name: Configure subsys
|
||||
run: cmake -B ${{github.workspace}}/build_subsys -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/local --debug-find repo/subsys
|
||||
|
||||
|
||||
- name: Build subsys
|
||||
run: cmake --build ${{github.workspace}}/build_subsys --config ${{env.BUILD_TYPE}}
|
||||
|
||||
- name: Install subsys
|
||||
run: cmake --install ${{github.workspace}}/build_subsys
|
||||
|
||||
|
||||
- name: Clone refcnt
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: Rconybea/refcnt
|
||||
path: repo/refcnt
|
||||
|
||||
- name: Configure refcnt
|
||||
run: cmake -B ${{github.workspace}}/build_refcnt -DCMAKE_PREFIX_PATH=${{github.workspace}}/local -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/local --debug-find repo/refcnt
|
||||
|
||||
- name: Build refcnt
|
||||
run: cmake --build ${{github.workspace}}/build_refcnt --config ${{env.BUILD_TYPE}}
|
||||
|
||||
- name: Install refcnt
|
||||
run: cmake --install ${{github.workspace}}/build_refcnt
|
||||
|
||||
- name: Checkout reflect
|
||||
uses: actions/checkout@v3
|
||||
|
||||
|
||||
|
||||
- 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
|
||||
|
||||
- name: Build reflect
|
||||
- name: Build refcnt
|
||||
# Build your program with the given configuration
|
||||
run: cmake --build ${{github.workspace}}/build_reflect --config ${{env.BUILD_TYPE}}
|
||||
run: cmake --build ${{github.workspace}}/build_refcnt --config ${{env.BUILD_TYPE}}
|
||||
|
||||
- name: Test reflect
|
||||
working-directory: ${{github.workspace}}/build_reflect
|
||||
- name: Test refcnt
|
||||
working-directory: ${{github.workspace}}/build_refcnt
|
||||
# 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