workflow: + build xo-simulator (wip - broken)

This commit is contained in:
Roland Conybeare 2024-03-15 20:11:39 -04:00
commit 4693064fd3

View file

@ -24,7 +24,8 @@ jobs:
- name: Install dependencies
run: |
echo "::group::install catch2"
# install catch2. see [[https://stackoverflow.com/questions/57982945/how-to-apt-get-install-in-a-github-actions-workflow]]
# install catch2. see
# [[https://stackoverflow.com/questions/57982945/how-to-apt-get-install-in-a-github-actions-workflow]]
sudo apt-get install -y catch2
echo "::endgroup"
@ -54,8 +55,36 @@ jobs:
cmake --install ${{github.workspace}}/build_xo-cmake
echo "::endgroup"
echo "::group::local dir tree"
tree ${{github.workspace}}/local
echo "::endgroup"
# ----------------------------------------------------------------
- name: clone xo-simulator
uses: actions/checkout@v3
with:
repository: Rconybea/xo-simulator
path: repo/xo-simulator
- name: build xo-simulator
run: |
echo "::group::configure xo-simulator
cmake -B ${{github.workspace}}/build_xo-simulator -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/local repo/xo-simulator
echo "::endgroup"
echo "::group::compile xo-simulator"
cmake --build ${{github.workspace}}/build_xo-simulator --config ${{env.BUILD_TYPE}}
echo "::endgroup"
echo "::group::local install xo-simulator";
cmake --install ${{github.workspace}}/build_xo-simulator
echo "::endgroup"
echo "::group::local dir tree"
tree ${{github.workspace}//local
echo "::endgroup"
- name: Configure self (pysimulator)
# 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