This repository has been archived by the owner on Jan 19, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
124 lines (122 loc) · 5.94 KB
/
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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
name: Linux CI
on:
workflow_dispatch:
workflow_call:
env:
HAXE_VERSION: 4.3.6
jobs:
linux:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc-multilib g++-multilib 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
- 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/mcagabe19-stuff/hxcpp --quiet
haxelib install format --quiet
haxelib install hxp --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: |
haxelib run lime rebuild linux -32 -release -nocolor -nocffi -eval
haxelib run lime rebuild linux -64 -release -nocolor -nocffi -eval
- name: Upload Artifact (x86)
uses: actions/upload-artifact@v4
with:
name: Linux
path: |
ndll/Linux/
!**/.gitignore
lime.png
if-no-files-found: error
- name: Upload Artifact (x86_64)
uses: actions/upload-artifact@v4
with:
name: Linux64
path: |
ndll/Linux64/
!**/.gitignore
lime.png
if-no-files-found: error
linuxarm:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf gcc-aarch64-linux-gnu g++-aarch64-linux-gnu libdrm-dev libegl1-mesa-dev libgles2-mesa-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
wget -q http://mirrors.ocf.berkeley.edu/ubuntu-ports/pool/main/libd/libdrm/libdrm2_2.4.101-2_armhf.deb
sudo dpkg-deb -x libdrm2_2.4.101-2_armhf.deb /
wget -q http://mirrors.ocf.berkeley.edu/ubuntu-ports/pool/main/libd/libdrm/libdrm-dev_2.4.101-2_armhf.deb
sudo dpkg-deb -x libdrm-dev_2.4.101-2_armhf.deb /
wget -q http://mirrors.ocf.berkeley.edu/ubuntu-ports/pool/main/libg/libglvnd/libegl1_1.3.1-1_armhf.deb
sudo dpkg-deb -x libegl1_1.3.1-1_armhf.deb /
wget -q http://mirrors.ocf.berkeley.edu/ubuntu-ports/pool/main/libg/libglvnd/libegl-dev_1.3.1-1_armhf.deb
sudo dpkg-deb -x libegl-dev_1.3.1-1_armhf.deb /
wget -q http://mirrors.ocf.berkeley.edu/ubuntu-ports/pool/main/libg/libglvnd/libgles2_1.3.1-1_armhf.deb
sudo dpkg-deb -x libgles2_1.3.1-1_armhf.deb /
wget -q http://mirrors.ocf.berkeley.edu/ubuntu-ports/pool/main/libg/libglvnd/libgles-dev_1.3.1-1_armhf.deb
sudo dpkg-deb -x libgles-dev_1.3.1-1_armhf.deb /
wget -q http://mirrors.ocf.berkeley.edu/ubuntu-ports/pool/main/libd/libdrm/libdrm2_2.4.101-2_arm64.deb
sudo dpkg-deb -x libdrm2_2.4.101-2_arm64.deb /
wget -q http://mirrors.ocf.berkeley.edu/ubuntu-ports/pool/main/libd/libdrm/libdrm-dev_2.4.101-2_arm64.deb
sudo dpkg-deb -x libdrm-dev_2.4.101-2_arm64.deb /
wget -q http://mirrors.ocf.berkeley.edu/ubuntu-ports/pool/main/libg/libglvnd/libegl1_1.3.1-1_arm64.deb
sudo dpkg-deb -x libegl1_1.3.1-1_arm64.deb /
wget -q http://mirrors.ocf.berkeley.edu/ubuntu-ports/pool/main/libg/libglvnd/libegl-dev_1.3.1-1_arm64.deb
sudo dpkg-deb -x libegl-dev_1.3.1-1_arm64.deb /
wget -q http://mirrors.ocf.berkeley.edu/ubuntu-ports/pool/main/libg/libglvnd/libgles2_1.3.1-1_arm64.deb
sudo dpkg-deb -x libgles2_1.3.1-1_arm64.deb /
wget -q http://mirrors.ocf.berkeley.edu/ubuntu-ports/pool/main/libg/libglvnd/libgles-dev_1.3.1-1_arm64.deb
sudo dpkg-deb -x libgles-dev_1.3.1-1_arm64.deb /
- 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/mcagabe19-stuff/hxcpp --quiet
haxelib install format --quiet
haxelib install hxp --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++ HXCPP_STRIP=arm-linux-gnueabihf-strip setarch linux32 haxelib run lime rebuild linux -armv7 -release -nocolor -nocffi -eval -D HXCPP_ARMV7
CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ HXCPP_STRIP=aarch64-linux-gnu-strip haxelib run lime rebuild linux -arm64 -release -nocolor -nocffi -eval -D HXCPP_ARM64
- name: Upload Artifact (armhf)
uses: actions/upload-artifact@v4
with:
name: LinuxArm
path: |
ndll/LinuxArm/
!**/.gitignore
lime.png
- name: Upload Artifact (arm64)
uses: actions/upload-artifact@v4
with:
name: LinuxArm64
path: |
ndll/LinuxArm64/
!**/.gitignore
lime.png
if-no-files-found: error