-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (29 loc) · 908 Bytes
/
deploy_pages.yml
File metadata and controls
34 lines (29 loc) · 908 Bytes
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
# gh pages build does not use threads / mutex's
# this offers wider browser support.
name: deploy_pages
on:
push:
branches: [ "master" ]
jobs:
build-web:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup emsdk
uses: mymindstorm/setup-emsdk@v11
with:
version: '3.1.30'
- name: Cmake Build
run: |
embuilder build zlib
# embuilder build zlib --lto
# embuilder build zlib --lto=thin
cmake --preset emsdk
cmake --build --preset emsdk --parallel 4
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: build/emsdk/bin # The folder the action should deploy.
# single-commit: true # Start branch with no history