-
-
Notifications
You must be signed in to change notification settings - Fork 7
58 lines (48 loc) · 1.85 KB
/
build-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
48
49
50
51
52
53
54
55
56
57
58
name: Linux
on: [push, repository_dispatch]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
haxe-version: [4.0.5, 4.1.5, 4.2.2, 4.3.0, 4.3.1]
steps:
- uses: actions/checkout@v1
- name: Setup Haxe (haxe ${{ matrix.haxe-version }}, ${{ matrix.os }})
uses: krdlab/setup-haxe@v1
with:
haxe-version: ${{ matrix.haxe-version }}
- name: Setup app (haxe ${{ matrix.haxe-version }}, ${{ matrix.os }})
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
run: |
sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install libgtk-3-dev
sudo apt-get install libwxbase3.0-dev
sudo apt-get install zlib1g
sudo apt-get install libpcre3
sudo apt-get install libglw1-mesa
sudo apt-get install libglw1-mesa-dev
sudo apt-get install libglu1-mesa-dev
sudo apt-get install freeglut3-dev
sudo apt-get install mesa-common-dev
wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.3/wxWidgets-3.1.3.tar.bz2
tar xjf wxWidgets-3.1.3.tar.bz2
cd wxWidgets-3.1.3
./configure --with-opengl --disable-shared > log.txt
sudo make
sudo make install
echo ::add-path::$(pwd)
cd ..
haxelib install hxcpp --always --quiet
git clone --branch master https://github.com/haxeui/haxeui-core.git --depth=1
haxelib dev haxeui-core haxeui-core
git clone --branch master https://github.com/haxeui/hxWidgets.git --depth=1
haxelib dev hxWidgets hxWidgets
haxelib dev haxeui-hxwidgets .
- name: Build app (haxe ${{ matrix.haxe-version }}, ${{ matrix.os }})
run: |
haxe build.hxml