Skip to content

Avoid curl usage on linux #6

Avoid curl usage on linux

Avoid curl usage on linux #6

Workflow file for this run

name: Build And Test Wasm
on:
push:
paths:
- "**/workflows/build_wasm.yml"
- "**/cmake/**"
- "**/modules/**"
- "**/tests/**"
- "**/thirdparty/**"
- "CMakeLists.txt"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Setup emsdk
uses: mymindstorm/setup-emsdk@v14
with:
version: 3.1.45
actions-cache-folder: "emsdk-cache"
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure
working-directory: ${{runner.workspace}}/build
run: emcmake cmake $GITHUB_WORKSPACE -G "Ninja Multi-Config" -DYUP_ENABLE_TESTS=ON -DYUP_ENABLE_EXAMPLES=OFF
- name: Build Debug
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config Debug --parallel 4 --target yup_tests
- name: Test Debug
working-directory: ${{runner.workspace}}/build/tests/Debug
run: node yup_tests.js
- name: Build Release
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config Release --parallel 4 --target yup_tests
- name: Test Release
working-directory: ${{runner.workspace}}/build/tests/Release
run: node yup_tests.js