-
Notifications
You must be signed in to change notification settings - Fork 2
102 lines (100 loc) · 5.49 KB
/
linux.yml
File metadata and controls
102 lines (100 loc) · 5.49 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Linux CI
on:
workflow_dispatch:
workflow_call:
env:
HAXE_VERSION: 4.3.7
jobs:
linux:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@main
- name: Install system dependencies
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y gcc-12-i686-linux-gnu g++-12-i686-linux-gnu libdrm-dev:i386 libgl1-mesa-dev:i386 libglu1-mesa-dev:i386 libpulse-dev:i386 libasound2-dev:i386 libx11-dev:i386 libxext-dev:i386 libxi-dev:i386 libxrandr-dev:i386 libxinerama-dev:i386 libpng-dev:i386 libturbojpeg-dev:i386 libuv1-dev:i386 libvorbis-dev:i386 libdbus-1-dev:i386 libpipewire-0.3-dev:i386 libxcursor-dev:i386 libxss-dev:i386 libudev-dev:i386 libbsd-dev:i386 libwayland-dev:i386 libxkbcommon-dev:i386 libegl1-mesa-dev:i386 libgles2-mesa-dev:i386 gcc-12 g++-12 libdrm-dev libgl1-mesa-dev libglu1-mesa-dev libpulse-dev libasound2-dev libx11-dev libxext-dev libxi-dev libxrandr-dev libxinerama-dev libmbedtls-dev libpng-dev libturbojpeg-dev libuv1-dev libvorbis-dev libdbus-1-dev libpipewire-0.3-dev libxcursor-dev libxss-dev libudev-dev libbsd-dev libwayland-dev libxkbcommon-dev libegl1-mesa-dev libgles2-mesa-dev libjack-dev --no-install-recommends --no-install-suggests
- name: Setup Haxe
uses: ShadowEngineTeam/setup-haxe@main
with:
haxe-version: ${{ env.HAXE_VERSION }}
- name: Set HAXEPATH
run: echo "HAXEPATH=$HAXE_STD_PATH/.." >> $GITHUB_ENV
- name: Install Haxe dependencies
run: |
haxelib git hxcpp https://github.com/ShadowEngineTeam/hxcpp --quiet
haxelib git format https://github.com/HaxeFoundation/format 9d69fb342d030fa120d2deafafbbffad248332b8 --quiet
haxelib git hxp https://github.com/openfl/hxp 47ef5ae6569cb0961761a2fbb416694df067124c --quiet
- name: Enable HXCPP compile cache
run: echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
- name: Configure Lime
run: haxelib dev lime ${{ github.workspace }}
- name: Rebuild Lime
run: |
CC=i686-linux-gnu-gcc-12 CXX=i686-linux-gnu-g++-12 linux32 haxelib run lime rebuild linux -32 -release -nocolor -nocffi -D HXCPP_M32
CC=gcc-12 CXX=g++-12 haxelib run lime rebuild linux -64 -release -nocolor -nocffi -D HXCPP_M64
- name: Upload Artifact (x86)
uses: actions/upload-artifact@main
with:
name: Linux-NDLL
path: |
ndll/Linux/
!**/.gitignore
lime.png
if-no-files-found: error
- name: Upload Artifact (x86_64)
uses: actions/upload-artifact@main
with:
name: Linux64-NDLL
path: |
ndll/Linux64/
!**/.gitignore
lime.png
if-no-files-found: error
linuxarm:
runs-on: ubuntu-22.04-arm
steps:
- name: Checkout
uses: actions/checkout@main
- name: Install system dependencies
run: |
sudo dpkg --add-architecture armhf
sudo apt update
sudo apt-get install -y gcc-12-arm-linux-gnueabihf g++-12-arm-linux-gnueabihf libdrm-dev:armhf libgl1-mesa-dev:armhf libglu1-mesa-dev:armhf libpulse-dev:armhf libasound2-dev:armhf libx11-dev:armhf libxext-dev:armhf libxi-dev:armhf libxrandr-dev:armhf libxinerama-dev:armhf libmbedtls-dev:armhf libpng-dev:armhf libturbojpeg-dev:armhf libuv1-dev:armhf libvorbis-dev:armhf libdbus-1-dev:armhf libpipewire-0.3-dev:armhf libxcursor-dev:armhf libxss-dev:armhf libudev-dev:armhf libbsd-dev:armhf libwayland-dev:armhf libxkbcommon-dev:armhf libegl1-mesa-dev:armhf libgles2-mesa-dev:armhf gcc-12 g++-12 libdrm-dev libgl1-mesa-dev libglu1-mesa-dev libpulse-dev libasound2-dev libx11-dev libxext-dev libxi-dev libxrandr-dev libxinerama-dev libmbedtls-dev libpng-dev libturbojpeg-dev libuv1-dev libvorbis-dev libdbus-1-dev libpipewire-0.3-dev libxcursor-dev libxss-dev libudev-dev libbsd-dev libwayland-dev libxkbcommon-dev libegl1-mesa-dev libgles2-mesa-dev libjack-dev --no-install-recommends --no-install-suggests
- name: Setup Haxe
uses: ShadowEngineTeam/setup-haxe@main
with:
haxe-version: ${{ env.HAXE_VERSION }}
- name: Install Haxe dependencies
run: |
haxelib setup ~/haxelib
haxelib git hxcpp https://github.com/ShadowEngineTeam/hxcpp --quiet
haxelib git format https://github.com/HaxeFoundation/format 9d69fb342d030fa120d2deafafbbffad248332b8 --quiet
haxelib git hxp https://github.com/openfl/hxp 47ef5ae6569cb0961761a2fbb416694df067124c --quiet
- name: Enable HXCPP compile cache
run: echo "HXCPP_COMPILE_CACHE=~/.hxcpp" >> $GITHUB_ENV
- name: Configure Lime
run: haxelib dev lime ${{ github.workspace }}
- name: Rebuild Lime
run: |
CC=arm-linux-gnueabihf-gcc-12 CXX=arm-linux-gnueabihf-g++-12 linux32 haxelib run lime rebuild linux -armv7 -release -nocolor -nocffi -D HXCPP_ARMV7
CC=gcc-12 CXX=g++-12 haxelib run lime rebuild linux -arm64 -release -nocolor -nocffi -D HXCPP_ARM64
- name: Upload Artifact
uses: actions/upload-artifact@main
with:
name: LinuxArm-NDLL
path: |
ndll/LinuxArm/
!**/.gitignore
lime.png
if-no-files-found: error
- name: Upload Artifact
uses: actions/upload-artifact@main
with:
name: LinuxArm64-NDLL
path: |
ndll/LinuxArm64/
!**/.gitignore
lime.png
if-no-files-found: error