-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (74 loc) · 2.33 KB
/
build.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
# This workflow will install backend's requirements and run tests
name: Build MultiEd
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install system dependencies
run: sudo apt update && sudo apt install qt6-base-dev libsdl2-dev libxmp-dev -y
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install requests
- name: Run Setup Build Script
run: python .github/workflow_scripts/setup_build.py linux
- name: Apply patches
run: |
cd libs/OldUnrealSDK
git init
git apply ../../patches/allow-per-viewport-input-sdldrv.patch
git apply ../../patches/add-getlastinputstate-sdldrv.patch
git apply ../../patches/add-temprenderdev-sdldrv-from-oldunreal.patch
- name: Run CMake On SDLDrv
run: |
cd libs/OldUnrealSDK
cmake -DCMAKE_INSTALL_PREFIX="./System64" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -S . -B ./cmake-build-release-clang
cmake --build ./cmake-build-release-clang --target SDLDrv
cp ./cmake-build-release-clang/SDLDrv.so ./System64/SDLDrv.so
- name: Run CMake
run: |
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -S . -B ./cmake-build-debug-clang
cmake --build ./cmake-build-debug-clang
- uses: actions/upload-artifact@v4
with:
name: MultiEd-linux-bin
path: libs/OldUnrealSDK/System64/MultiEd-bin
# windows:
# runs-on: windows-latest
#
# steps:
# - uses: actions/checkout@v4
#
# - run: choco install qt6-base-dev
#
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: '3.11'
# cache: 'pip'
#
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# python -m pip install requests
#
#
# - name: Run Setup Build Script
# run: python .github/workflow_scripts/setup_build.py linux
#
# - uses: actions/upload-artifact@v4
# with:
# name: windows-app
# path: dist/app