forked from HexaEngine/Hexa.NET.Raylib
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (49 loc) · 1.89 KB
/
cmake-arm.yml
File metadata and controls
57 lines (49 loc) · 1.89 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
name: Build raylib Libraries (ARM, Linux)
on: [workflow_dispatch]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: linux
arch: arm64
cmake-arch: aarch64
runner-label: self-hosted
# - os: windows-latest
# arch: arm64
# triplet: arm64-windows
# arch-cmake: arm64
steps:
- uses: actions/checkout@v4.1.7
with:
repository: 'raysan5/raylib'
path: 'raylib'
ref: '5.5'
submodules: true
- name: Install Dependencies on Ubuntu
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev libwayland-dev libxkbcommon-dev
sudo dpkg --add-architecture arm64
sudo apt-get update
sudo apt-get install -y libasound2-dev:arm64 libx11-dev:arm64 libxrandr-dev:arm64 libxi-dev:arm64 libgl1-mesa-dev:arm64 libglu1-mesa-dev:arm64 libxcursor-dev:arm64 libxinerama-dev:arm64 libwayland-dev:arm64 libxkbcommon-dev:arm64
- name: Configure Raylib with CMake for ARM64 on Linux
run: |
cd raylib
cmake -S ./ -B ./build -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF
- name: Build raylib
run: cmake --build raylib/build --config Release
- name: Move Windows binaries
if: matrix.os == 'windows-latest'
run: |
mv raylib/build/raylib/Release/*.dll raylib/build/raylib/
- name: Upload Artifacts
uses: actions/upload-artifact@v4.3.4
with:
name: raylib-${{ matrix.os }}-${{ matrix.arch }}-artifacts
path: |
raylib/build/raylib/*.dll
raylib/build/raylib/*.so
raylib/build/raylib/*.dylib
if-no-files-found: ignore # 'warn' or 'ignore' or 'error'