From 4693064fd3b3f1ecce7e6adf8041a1527e8291e9 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Fri, 15 Mar 2024 20:11:39 -0400 Subject: [PATCH] workflow: + build xo-simulator (wip - broken) --- .github/workflows/main.yml | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4aafb3b2..95a81b40 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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