forked from Banderi/Ozymandias_Julius
-
-
Notifications
You must be signed in to change notification settings - Fork 42
49 lines (47 loc) · 1.88 KB
/
Copy pathakhenaten_linux.yml
File metadata and controls
49 lines (47 loc) · 1.88 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
name: Akhenaten Build Linux
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
name: run on linux
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: update-workspace
run: |
sudo apt -qq update
sudo apt install --yes cmake build-essential libgl1-mesa-dev libssl-dev libasound2-dev libpulse-dev meson ninja-build nasm
- name: build-project
run: |
mkdir linux_build
mkdir linux_build/data
cmake --preset linux-gcc-release-make
cmake --build --preset linux-gcc-release-make --target akhenaten akhenaten-updater -- -j$(nproc)
cp ./build/akhenaten ./linux_build/akhenaten.linux
cp ./build/akhenaten-updater ./linux_build/akhenaten-updater
chmod +x ./linux_build/akhenaten-updater
if [ -f ./build/tools/innoextract/bin/innoextract ]; then
cp ./build/tools/innoextract/bin/innoextract ./linux_build/innoextract
chmod +x ./linux_build/innoextract
elif [ -f ./build/innoextract ]; then
cp ./build/innoextract ./linux_build/innoextract
chmod +x ./linux_build/innoextract
else
curl -fsSL -o /tmp/inno-linux.tar.gz \
"https://github.com/dalerank/innoextract-nb/releases/download/v1.0.0/innoextract-linux-x64.tar.gz"
tar -xzf /tmp/inno-linux.tar.gz -C ./linux_build
chmod +x ./linux_build/innoextract
fi
cp ./data/pharaoh_fonts_pack.sgx ./linux_build/data/pharaoh_fonts_pack.sgx
cp ./data/pharaoh_custom_pack.sgx ./linux_build/data/pharaoh_custom_pack.sgx
cp ./data/pharaoh_houses_pack.sgx ./linux_build/data/pharaoh_houses_pack.sgx
cp ./data/neucha.ttf ./linux_build/data/neucha.ttf
- uses: actions/upload-artifact@v6
with:
name: linux_build
path: linux_build