forked from RSDKModding/RSDKv5-Decompilation
-
Notifications
You must be signed in to change notification settings - Fork 6
94 lines (90 loc) · 3.53 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
89
90
91
92
93
94
name: Build RSDKv5
on: workflow_dispatch
# each artifact is like 15MB so we'll start by only doing it manually
# on:
# push:
# branches:
# - master
# TODO: readd with: submodules: recursive once we can
jobs:
v5-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: vcpkg install libtheora libogg --triplet=x86-windows-static
- name: Build RSDKv5 + U
run: |
cmake -B build_v5 -DRETRO_REVISION=2 -DRETRO_DISABLE_PLUS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x86-windows-static
cmake --build build_v5 --parallel
cmake -B build_v5U -DRETRO_DISABLE_PLUS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x86-windows-static
cmake --build build_v5U --parallel
- name: Move artifacts
run: |
mkdir artifacts
mv ./build_*/*.exe ./artifacts
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: v5-windows
path: artifacts
v5-windows-x64:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: vcpkg install libtheora libogg --triplet=x64-windows-static
- name: Build RSDKv5 + U
run: |
cmake -B build_v5 -DRETRO_REVISION=2 -DRETRO_DISABLE_PLUS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows-static
cmake --build build_v5 --parallel
cmake -B build_v5U -DRETRO_DISABLE_PLUS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows-static
cmake --build build_v5U --parallel
- name: Move artifacts
run: |
mkdir artifacts
mv ./build_*/*.exe ./artifacts
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: v5-windows-x64
path: artifacts
v5-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libogg-dev libsdl2-dev libtheora-dev libglew-dev libglfw3-dev
- name: Build RSDKv5 + U OGL
run: |
cmake -B build_v5 -DRETRO_REVISION=2 -DRETRO_DISABLE_PLUS=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build_v5 --parallel
cmake -B build_v5U -DRETRO_DISABLE_PLUS=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build_v5U --parallel
- name: Build RSDKv5 + U SDL2
run: |
cmake -B build_v5 -DRETRO_REVISION=2 -DRETRO_DISABLE_PLUS=ON -DCMAKE_BUILD_TYPE=Release -DRETRO_SUBSYSTEM=SDL2
cmake --build build_v5 --parallel
cmake -B build_v5U -DRETRO_DISABLE_PLUS=ON -DCMAKE_BUILD_TYPE=Release -DRETRO_SUBSYSTEM=SDL2
cmake --build build_v5U --parallel
- name: Move artifacts
run: |
mkdir artifacts
mv ./build_*/RSDKv5* ./artifacts
chmod a+x ./artifacts/*
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: v5-linux
path: artifacts