Skip to content

Bump ws from 6.2.2 to 6.2.3 in /devices/wasm/web (#19) #162

Bump ws from 6.2.2 to 6.2.3 in /devices/wasm/web (#19)

Bump ws from 6.2.2 to 6.2.3 in /devices/wasm/web (#19) #162

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
cmake-args:
- -DCMAKE_BUILD_TYPE=Debug -DSINTER_DEBUG_LOGLEVEL=2 -DSINTER_DEBUG_MEMORY_CHECK=1 -DSINTER_COVERAGE=1
- -DCMAKE_BUILD_TYPE=Debug -DSINTER_DEBUG_LOGLEVEL=2 -DSINTER_DEBUG_MEMORY_CHECK=1
- -DCMAKE_BUILD_TYPE=Debug -DSINTER_DEBUG_LOGLEVEL=2 -DSINTER_DEBUG_MEMORY_CHECK=1 -DSINTER_TEST_SHORT_DOUBLE=1
- -DCMAKE_C_COMPILER=clang -DCMAKE_BUILD_TYPE=Debug -DSINTER_DEBUG_LOGLEVEL=2 -DSINTER_DEBUG_MEMORY_CHECK=1
- -DCMAKE_C_COMPILER=clang -DCMAKE_BUILD_TYPE=Debug -DSINTER_DEBUG_LOGLEVEL=2 -DSINTER_DEBUG_MEMORY_CHECK=1 -DSINTER_TEST_SHORT_DOUBLE=1
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_BUILD_TYPE=Release -DSINTER_TEST_SHORT_DOUBLE=1
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: install cpp-coveralls
run: pip install --user cpp-coveralls
if: github.event_name != 'pull_request' && contains(matrix.cmake-args, 'coverage')
- name: mkdir
run: mkdir build
- name: cmake
working-directory: build
run: cmake .. ${{ matrix.cmake-args }}
- name: make
working-directory: build
run: make -j4
- name: Run tests
working-directory: build
run: make CTEST_PARALLEL_LEVEL=$(nproc) CTEST_OUTPUT_ON_FAILURE=1 test
- name: Check coverage
working-directory: build
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TRAVIS_JOB_ID: ${{ github.run_id }}
run: ~/.local/bin/cpp-coveralls -r .. --include vm --include runner --gcov-options '\-lp' -y ../.coveralls.yml
if: github.event_name != 'pull_request' && contains(matrix.cmake-args, 'coverage')
check-headers:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check if headers work in C++
working-directory: vm/include
run: g++ -std=c++11 -fsyntax-only sinter/*.h sinter.h -I. -Wall -Wextra -pedantic
web-demo:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies (apt)
run: |
sudo apt-get update && \
sudo apt-get install -y --no-install-recommends \
libxi-dev libgl1-mesa-dev
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
cache-dependency-path: ./devices/wasm/web/yarn.lock
- name: Setup Emscripten
uses: mymindstorm/setup-emsdk@v14
- name: Install dependencies
working-directory: devices/wasm/web
run: yarn install --frozen-lockfile
- name: Lint
working-directory: devices/wasm/web
run: yarn lint
- name: Build WASM module
working-directory: devices/wasm
run: |
mkdir -p build
cd build
emcmake cmake ../wasm
make -j$(nproc)
- name: Ensure website builds
working-directory: devices/wasm/web
run: yarn build