From 9b244605714949974b46767274e4918190e058a1 Mon Sep 17 00:00:00 2001 From: Frank Bergmann Date: Wed, 17 Jan 2024 00:33:49 +0100 Subject: [PATCH] add install target --- .github/workflows/emscripten.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml index ad722ea..572cfc6 100644 --- a/.github/workflows/emscripten.yml +++ b/.github/workflows/emscripten.yml @@ -1,6 +1,6 @@ # This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage. # See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml -name: CMake on a single platform +name: Emscripten run on: push: @@ -87,10 +87,14 @@ jobs: - name: Configure CMake # 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: emcmake cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCOPASIJS_DEPENDENCY_DIR=${{github.workspace}}/dependencies -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/bin-js + run: emcmake cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCOPASIJS_DEPENDENCY_DIR=${{github.workspace}}/em-dependencies -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/bin-js - name: Build # Build your program with the given configuration run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + - name: Install + # Build your program with the given configuration + run: cmake --install ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} +