forked from numworks/epsilon
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.19 KB
/
build-web.yml
File metadata and controls
40 lines (38 loc) · 1.19 KB
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
name: Web Build
on:
workflow_dispatch:
inputs:
debug:
type: boolean
default: false
env:
MAKEFLAGS: -j2
DEBUG: ${{ fromJSON(github.event.inputs.debug) && '1' || '0' }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Read Emscripten version
run: echo "EMSDK_VERSION=$(cat .emsdk-version)" >> $GITHUB_ENV
- name: Download emscripten
uses: numworks/setup-emscripten@latest
with:
sdk: ${{ env.EMSDK_VERSION }}
- name: Setup
run: build/setup.sh --only-simulator
- name: Build
run: make DEBUG=$DEBUG PLATFORM=web epsilon.html htmlpack.zip
- name: Upload epsilon.html
uses: actions/upload-artifact@v4
with:
name: epsilon.html
path: output/${{ fromJSON(github.event.inputs.debug) && 'debug' || 'release' }}/web/epsilon.html
retention-days: 7
- name: Upload htmlpack.zip
uses: actions/upload-artifact@v4
with:
name: htmlpack.zip
path: output/${{ fromJSON(github.event.inputs.debug) && 'debug' || 'release' }}/web/htmlpack.zip
retention-days: 7