Skip to content

Build TWGSL

Build TWGSL #56

Workflow file for this run

name: Build TWGSL
on: workflow_dispatch
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2.3.3
- name: Update submodule
run: |
git submodule update --init --recursive
git submodule update --remote --merge
git submodule update --progress --init --recursive --force --remote -- "Dependencies/tint"
- name: Python package
run: |
pip install --upgrade setuptools
- name: Clone/install emsdk
run: |
cd ..
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install 3.1.24
- name: Clone DepotTools
run: |
cd ..
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
- name: Build
run: |
cd ../emsdk
./emsdk activate 3.1.24
source "emsdk_env.sh"
cd ../depot_tools
export PATH=$(pwd):$PATH
cd ../twgsl/Dependencies/Tint
cp standalone.gclient .gclient
gclient sync
cd ../../..
mkdir twgsl_build
cd twgsl_build
emcmake cmake ../twgsl
emmake make twgsl
mkdir ../twgsl/artifact
cp ./Core/twgsl/twgsl.js ../twgsl/artifact/twgsl.js
cp ./Core/twgsl/twgsl.wasm ../twgsl/artifact/twgsl.wasm
- name: Upload TWGSL artifact Folder
uses: actions/upload-artifact@v2
with:
name: 'TWGSL'
path: artifact