-
Notifications
You must be signed in to change notification settings - Fork 26
43 lines (35 loc) · 997 Bytes
/
web.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: Build WebAssembly
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Emscripten
uses: mymindstorm/setup-emsdk@v14
- name: Build doxygen docs
uses: mattnotmitt/[email protected]
with:
working-directory: './'
doxyfile-path: './Doxyfile'
- name: Compile to WebAssembly
run: |
make CC=emcc
mv html docs
- name: get nuklear webasm
run: |
cd webasm
wget https://github.com/ColleagueRiley/nuklear_rgfw/raw/main/rgfw_opengl2/rgfw-nuklear.wasm
wget https://raw.githubusercontent.com/ColleagueRiley/nuklear_rgfw/main/rgfw_opengl2/rgfw-nuklear.js
- name: Deploy Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./