-
Notifications
You must be signed in to change notification settings - Fork 71
47 lines (41 loc) · 1.39 KB
/
main.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
name: Testing
on:
push:
branches: main
workflow_dispatch:
jobs:
Job:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
sample: [flixel-playback, lime-playback, openfl-playback]
steps:
- name: Checkout
uses: actions/checkout@main
with:
submodules: true
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.4
- name: Installing Dependencies
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install libvlc-dev libvlccore-dev
- name: Installing Haxe Libraries
run: |
haxelib install hxcpp --quiet
haxelib install lime --quiet
haxelib install openfl --quiet
haxelib install flixel --quiet
haxelib git hxCodec https://github.com/polybiusproxy/hxCodec.git ${{github.ref_name}} --quiet
- name: Building Windows
if: matrix.os == 'windows-latest'
run: cd samples/${{matrix.sample}} && haxelib run lime build windows -debug
- name: Building MacOS
if: matrix.os == 'macos-latest'
run: cd samples/${{matrix.sample}} && haxelib run lime build mac -debug
- name: Building Linux
if: matrix.os == 'ubuntu-latest'
run: cd samples/${{matrix.sample}} && haxelib run lime build linux -debug