This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (60 loc) · 1.89 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Web
on: workflow_dispatch
jobs:
HTML5:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: latest
- name: Install Libraries
run: |
haxelib setup ~/haxelib
haxelib install hmm --quiet
haxelib run hmm install --quiet
- name: Compile
run: haxelib run lime build html5
- name: Upload Artifact
if: ${{ success() }}
uses: actions/upload-artifact@main
with:
name: html5Build
path: export/release/html5/bin
if-no-files-found: error
Emscripten:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup Emscripten Toolchain
run: |
cd ~
git clone --quiet https://github.com/emscripten-core/emsdk.git > /dev/null
cd emsdk
./emsdk install latest
./emsdk activate latest
chmod +x ./emsdk_env.sh && echo 'source "/home/runner/emsdk/emsdk_env.sh"' >> $HOME/.bash_profile
echo "EMSDK=$HOME/emsdk:$HOME/emsdk/upstream/emscripten" >> $GITHUB_ENV
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: latest
- name: Install Libraries
run: |
haxelib setup ~/haxelib
haxelib install hmm --quiet
haxelib run hmm install --quiet
- name: Configure Emscripten
run: haxelib run lime config EMSCRIPTEN_SDK $EMSDK
- name: Compile
run: PATH=$EMSDK:$PATH haxelib run lime build emscripten
- name: Upload Artifact
if: ${{ success() }}
uses: actions/upload-artifact@main
with:
name: emscriptenBuild
path: export/release/webassembly/bin
if-no-files-found: error