local run #1
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: Emscripten | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: | | |
wget -q https://github.com/emscripten-core/emsdk/archive/master.tar.gz | |
tar -xvf master.tar.gz | |
emsdk-master/emsdk update | |
emsdk-master/emsdk install latest | |
emsdk-master/emsdk activate latest | |
- name: Build example_emscripten_opengl3 | |
run: | | |
pushd emsdk-master | |
source ./emsdk_env.sh | |
popd | |
mv Makefile.emscripten Makefile | |
make | |
sudo tar -cvjSf web.tar.bz2 web | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: Wasm | |
path: | | |
web.tar.bz2 | |
- name: Deploy | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: gh-pages | |
FOLDER: web | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |