This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (43 loc) · 1.64 KB
/
html5.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
# Web Lua
# haxelib git hxjs-fengari https://github.com/kevinresol/hxjs-fengari.git
# haxelib git hxvm-luajit https://github.com/nebulazorua/hxvm-luajit.git
name: HTML5 Build CI
on: [workflow_dispatch]
jobs:
build:
name: Build
runs-on: ubuntu-${{ matrix.version }}
strategy:
matrix:
version: [22.04]
build: [release, debug]
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.2.5
- name: Install Haxelib
run: |
haxelib setup ~/haxelib
haxelib install lime 7.9.0 --quiet
haxelib install openfl 9.1.0 --quiet
haxelib install actuate 1.8.9 --quiet
haxelib --never git flixel https://github.com/mcagabe19/flixel-4.11.0.git
haxelib install flixel-ui 2.3.3 --quiet
haxelib install hscript 2.4.0 --quiet
haxelib install flixel-addons 2.11.0 --quiet
haxelib git polymod https://github.com/mcagabe19/polymod-for-steve.git
- name: Compile
run: haxelib run lime build html5 -${{ matrix.build }} -D macro-times -D analyzer-optimize
- name: Publish Artifact
uses: actions/upload-artifact@main
with:
name: build-ubuntu${{ matrix.version }}-${{ matrix.build }}
path: export/${{ matrix.build }}/html5/bin
- name: Publish Artifact (Only JS)
uses: actions/upload-artifact@main
with:
name: onlyjs-ubuntu${{ matrix.version }}-${{ matrix.build }}
path: 'export/${{ matrix.build }}/html5/bin/*.js*'