-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (48 loc) · 1.48 KB
/
main.yml
File metadata and controls
50 lines (48 loc) · 1.48 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
41
42
43
44
45
46
47
48
49
50
name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
build-samples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: krdlab/setup-haxe@v1
with:
haxe-version: 4.3.6
- name: Print Haxe version
run: |
haxe --version
- name: Install dependencies for HashLink
run: |
sudo apt-get update
sudo apt-get install -y libpng-dev libturbojpeg-dev libvorbis-dev libopenal-dev libsdl2-dev libmbedtls-dev libuv1-dev libglu1-mesa-dev xvfb
- name: Install HashLink
run: |
git clone https://github.com/HaxeFoundation/hashlink.git
cd hashlink
git checkout master
make
sudo make install
cd ..
- name: Verify HashLink installation
run: |
hl --version
- name: Install haxelib deps
run: |
haxelib install ludi-commons
haxelib install uuid
haxelib git format https://github.com/HaxeFoundation/format
haxelib git hxbit https://github.com/ncannasse/hxbit
haxelib git hscript https://github.com/HaxeFoundation/hscript
haxelib git domkit https://github.com/HeapsIO/domkit
haxelib git hide https://github.com/HeapsIO/hide
haxelib git hlsdl https://github.com/HaxeFoundation/hashlink master libs/sdl
haxelib git heaps https://github.com/HeapsIO/heaps
- name: Build tests
run: |
haxe test/compile.hxml
- name: Run tests
run: |
hl test/build.hl