Skip to content

Commit

Permalink
add install target
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann authored Jan 16, 2024
1 parent 1515fb8 commit 9b24460
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/emscripten.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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}}


0 comments on commit 9b24460

Please sign in to comment.