Skip to content

ci: add emscripten #192

ci: add emscripten

ci: add emscripten #192

Workflow file for this run

name: CI
on: [push, pull_request, workflow_dispatch]
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
jobs:
ci-ubuntu:
name: Build on Linux (Ubuntu)
runs-on: ubuntu-latest
steps:
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- uses: actions/checkout@v4
- uses: mymindstorm/setup-emsdk@v14
- names: verify emscripten toolchain

Check failure on line 21 in .github/workflows/develop.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/develop.yml (Line: 21, Col: 9): Unexpected value 'names' .github/workflows/develop.yml (Line: 45, Col: 9): Unexpected value 'names'
run: emcc -v
- uses: lukka/get-cmake@latest
- name: install dependencies
run: ./vcpkg.sh
- name: build desktop
run: make build_desktop
- name: build webassembly
run: make build_webassembly
- name: build test
run: make test
ci-mac:
name: Build on MacOS
runs-on: macOS-latest
steps:
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- uses: actions/checkout@v4
- uses: mymindstorm/setup-emsdk@v14
- names: verify emscripten toolchain
run: emcc -v
- uses: lukka/get-cmake@latest
- name: install dependencies
run: ./vcpkg.sh
- name: build desktop
run: make build_desktop
- name: build webassembly
run: make build_webassembly
- name: build test
run: make test
fmt:
name: Formatting Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Run clang-format"
uses: jidicula/[email protected]
with:
clang-format-version: '18'