Build TWGSL #62
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: Build TWGSL | |
on: workflow_dispatch | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/[email protected] | |
- 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: | | |
brew install python-setuptools | |
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 |