fix: stash and restore prediction when calling learn during learn_returns_prediction==false calls #228
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Wasm | |
on: | |
push: | |
branches: | |
- master | |
- 'releases/**' | |
pull_request: | |
branches: | |
- '*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
job: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: lukka/get-cmake@latest | |
- uses: mymindstorm/setup-emsdk@v11 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Configure | |
run: emcmake cmake --preset wasm -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_TOOLCHAIN_FILE=$(pwd)/ext_libs/vcpkg/scripts/buildsystems/vcpkg.cmake | |
- name: Build | |
run: cmake --build build --target vw-wasm | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: wasm | |
- name: Test | |
working-directory: wasm | |
run: | | |
npm install | |
npm test |