forked from Raais/ImStudio
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1020 Bytes
/
emscripten.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 }}