-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (45 loc) · 1.28 KB
/
wtri-linux.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: wtri-linux
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
# strategy:
# fail-fast: false
# matrix:
# haxe:
# - latest
# - 4.3.3
steps:
- uses: actions/checkout@v3
- name: Install haxe
uses: krdlab/setup-haxe@v1.5.1
with:
haxe-version: 4.3.3
- name: Install haxelibs
run: |
haxelib dev wtri .
haxelib install haxelib.json
haxelib install hashlink
haxelib install hxcpp
haxelib git hxargs https://github.com/Simn/hxargs
haxelib git om.core https://github.com/omlib/om.core
haxelib git om.http https://github.com/omlib/om.http
- name: Install hashlink
run: |
apt install libpng-dev libturbojpeg-dev libvorbis-dev libopenal-dev libsdl2-dev libmbedtls-dev libuv1-dev libsqlite3-dev libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev
git clone https://github.com/HaxeFoundation/hashlink
cd hashlink
make
make install
- name: Build c
run: haxe wtri.hxml -hl out/main.c
- name: Build bin
run: make
- name: Store
uses: actions/upload-artifact@v3
with:
name: wtri
path: wtri