-
Notifications
You must be signed in to change notification settings - Fork 1
98 lines (96 loc) · 4.52 KB
/
linux.yml
File metadata and controls
98 lines (96 loc) · 4.52 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
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@v4
- name: Install system dependencies
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y gcc-i686-linux-gnu g++-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 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 --no-install-recommends --no-install-suggests
- name: Setup Haxe
uses: krdlab/setup-haxe@master
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 CXX=i686-linux-gnu-g++ linux32 haxelib run lime rebuild linux -32 -release -nocolor -nocffi -D HXCPP_M32
haxelib run lime rebuild linux -64 -release -nocolor -nocffi -D HXCPP_M64
- name: Upload Artifact (x86)
uses: actions/upload-artifact@v4
with:
name: Linux-NDLL
path: |
ndll/Linux/
!**/.gitignore
lime.png
if-no-files-found: error
- name: Upload Artifact (x86_64)
uses: actions/upload-artifact@v4
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@v4
- name: Install system dependencies
run: |
sudo dpkg --add-architecture armhf
sudo apt update
sudo apt-get install -y haxe gcc-arm-linux-gnueabihf g++-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 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 --no-install-recommends --no-install-suggests
- 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 CXX=arm-linux-gnueabihf-g++ linux32 haxelib run lime rebuild linux -armv7 -release -nocolor -nocffi -D HXCPP_ARMV7
haxelib run lime rebuild linux -arm64 -release -nocolor -nocffi -D HXCPP_ARM64
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: LinuxArm-NDLL
path: |
ndll/LinuxArm/
!**/.gitignore
lime.png
if-no-files-found: error
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: LinuxArm64-NDLL
path: |
ndll/LinuxArm64/
!**/.gitignore
lime.png
if-no-files-found: error