Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Fix Build CI #79

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 0 additions & 59 deletions .circleci/config.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build

on:
push:

jobs:
build:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '10.x'

- name: checkout
run: git submodule update --init

- name: Install node dependencies
run: npm install

- name: Build with emscripten
run: script/install-emscripten.sh

- name: Build emscripten
run: npm run build:browser

- name: Lint JavaScript
run: npm run standard

- name: Test Browser
run: npm run test:browser

- name: Test Node.js
run: npm run test:node

- name: Test native
run: npm run test:native

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ build
.clang_complete

/browser.js
emsdk-portable
emsdk-1.39.16
package-lock.json
browser.wasm
2 changes: 1 addition & 1 deletion script/build-browser-version.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

source emsdk-portable/emsdk_env.sh
source emsdk-1.39.16/emsdk_env.sh

mkdir -p build

Expand Down
14 changes: 7 additions & 7 deletions script/install-emscripten.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

set -e

EMSCRIPTEN_DOWNLOAD_URL='https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz'
EMSDK_PATH="./emsdk-portable/emsdk"
EMSCRIPTEN_DOWNLOAD_URL='https://codeload.github.com/emscripten-core/emsdk/tar.gz/1.39.16'
EMSDK_PATH="./emsdk-1.39.16/emsdk"

if [ ! -f $EMSDK_PATH ]; then
echo 'Downloading emscripten SDK installer...'
Expand All @@ -13,10 +13,10 @@ fi
echo 'Installing emscripten SDK...'

# Workaround https://github.com/juj/emsdk/pull/74
sed -i{} "s_/kripken/emscripten/'_/kripken/emscripten'_" $EMSDK_PATH
sed -i{} "s_/WebAssembly/binaryen/'_/WebAssembly/binaryen'_" $EMSDK_PATH
#sed -i{} "s_/kripken/emscripten/'_/kripken/emscripten'_" $EMSDK_PATH
#sed -i{} "s_/WebAssembly/binaryen/'_/WebAssembly/binaryen'_" $EMSDK_PATH

$EMSDK_PATH update
$EMSDK_PATH list
$EMSDK_PATH install sdk-1.37.9-64bit
$EMSDK_PATH activate sdk-1.37.9-64bit
$EMSDK_PATH list --old
$EMSDK_PATH install emscripten-1.37.9
$EMSDK_PATH activate emscripten-1.37.9