Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions .github/workflows/emscripten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Setup Emscripten toolchain
uses: mymindstorm/setup-emsdk@v14

Expand All @@ -31,17 +31,21 @@ jobs:
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Store artifact's name
id: artifact-name
env:
REF: ${{ github.ref }}
run: echo "::set-output name=value::${REF////-}-test"

- uses: actions/[email protected]
with:
name: 'LegitScriptWasm-${{ github.sha }}.js'
path: '${{github.workspace}}/build/web/LegitScriptWasm.js'
overwrite: true
- uses: actions/[email protected]
with:
name: 'LegitScriptWasm-${{ github.sha }}.wasm'
path: '${{github.workspace}}/build/web/LegitScriptWasm.wasm'
name: 'LegitScriptWasm-${{ steps.artifact-name.outputs.value }}'
path: |
${{github.workspace}}/build/web/LegitScriptWasm.wasm
${{github.workspace}}/build/web/LegitScriptWasm.js
if-no-files-found: error
overwrite: true

- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
Expand Down