Skip to content

Commit d4b669b

Browse files
authored
CD: create the latest version of our WASM.
2 parents b9c357f + c99a679 commit d4b669b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/cd.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,11 @@ jobs:
237237
run: cmake -G Ninja -S . -B build -DBUILD_TYPE=Release -DCODE_ANALYSIS=OFF -DCODE_COVERAGE=OFF -DDOCUMENTATION=OFF -DJAVASCRIPT_BINDINGS=ON -DJAVASCRIPT_UNIT_TESTING=OFF -DMEMORY_CHECKS=OFF -DPYTHON_BINDINGS=OFF -DPYTHON_UNIT_TESTING=OFF -DSHARED_LIBS=OFF -DUNIT_TESTING=OFF
238238
- name: Build WebAssembly
239239
run: cmake --build build
240+
- name: Create latest version
241+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
242+
run: |
243+
cd build/src/bindings/javascript/build/src/wasm
244+
cp libopencor-*.js libopencor-latest.js
240245
- name: Upload WebAssembly artifact
241246
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
242247
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)