Skip to content

Commit

Permalink
- add a build without wasm for web
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann authored Jan 24, 2024
1 parent ca2ecf5 commit 4414974
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/emscripten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,18 @@ jobs:
cmake --build ${{github.workspace}}/build-web --config ${{env.BUILD_TYPE}}
cmake --install ${{github.workspace}}/build-web --config ${{env.BUILD_TYPE}}
- name: Configure and build for web (single file)
run: |
emcmake cmake -B ${{github.workspace}}/build-single \
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-DCOPASIJS_DEPENDENCY_DIR=${{github.workspace}}/em-dependencies \
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/dist-single \
-DCOPASIJS_ENVIRONMENT=web \
-DCOPASIJS_SINGLE_FILE=ON
cmake --build ${{github.workspace}}/build-single --config ${{env.BUILD_TYPE}}
cmake --install ${{github.workspace}}/build-single --config ${{env.BUILD_TYPE}}
- name: dependencies archive
uses: actions/upload-artifact@v4
with:
Expand All @@ -116,19 +128,27 @@ jobs:
retention-days: 90
if-no-files-found: error

- name: copasijs archive
- name: copasijs archive (for web use, with wasm)
uses: actions/upload-artifact@v4
with:
name: copasijs-web
path: ${{github.workspace}}/dist-web/*
retention-days: 90
if-no-files-found: error

- name: copasijs archive
- name: copasijs archive (for web use, js only)
uses: actions/upload-artifact@v4
with:
name: copasijs-web-single
path: ${{github.workspace}}/dist-single/*
retention-days: 90
if-no-files-found: error

- name: copasijs archive (for use from node)
uses: actions/upload-artifact@v4
with:
name: copasijs-node
path: ${{github.workspace}}/dist-node/*
retention-days: 90
if-no-files-found: error


0 comments on commit 4414974

Please sign in to comment.