-
Notifications
You must be signed in to change notification settings - Fork 6
72 lines (63 loc) · 1.87 KB
/
Copy pathLinuxARM64.yml
File metadata and controls
72 lines (63 loc) · 1.87 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
name: Linux Builds (arm64)
on:
push:
branches:
- "main"
paths-ignore:
- .github/workflows/FreeBSD.yml
- .github/workflows/macOS.yml
- .github/workflows/Windows.yml
pull_request:
types: [edited, opened, synchronize]
paths-ignore:
- .github/workflows/FreeBSD.yml
- .github/workflows/macOS.yml
- .github/workflows/Windows.yml
workflow_dispatch:
workflow_call:
jobs:
build:
name: Linux (arm64)
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install build deps
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libgl1-mesa-dev libsdl2-dev libopenal-dev libcurl4-openssl-dev \
libfreetype6-dev cmake ninja-build ccache zip
- name: Ensure ccache dir exists and init
run: |
mkdir -p ~/.ccache
ccache --max-size=10G || true
- name: Restore ccache
uses: actions/cache@v4
with:
path: ~/.ccache
key: ${{ runner.os }}-ccache-arm64-${{ github.sha }}
restore-keys: |
${{ runner.os }}-ccache-arm64-
${{ runner.os }}-ccache-
- name: Build the engine
run: |
rm -rf build
mkdir -p build
cd build
cmake -G Ninja \
-DDEDICATED=ON \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache ../neo/
ninja
- name: Chmod game executables
run: |
chmod +x "${{ github.workspace }}/output/linux/prey06"
chmod +x "${{ github.workspace }}/output/linux/prey06ded"
- name: Artifacts
uses: actions/upload-artifact@v4
with:
name: prey2006-linux-arm64
path: output/linux/
compression-level: 6