Skip to content

Build RSDKv5

Build RSDKv5 #12

Workflow file for this run

name: Build RSDKv5
on: workflow_dispatch
# each artifact is like 15MB so we'll start by only doing it manually
# on:
# push:
# branches:
# - master
env:
GENERAL_FLAGS: "-DRETRO_DISABLE_PLUS=ON"
V5_FLAGS: "-DRETRO_REVISION=2"
V5U_FLAGS: "-DRETRO_REVISION=3"
GENERAL_WIN_FLAGS: "-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake"
WIN32_FLAGS: "-DVCPKG_TARGET_TRIPLET=x86-windows-static -A Win32"
WIN64_FLAGS: "-DVCPKG_TARGET_TRIPLET=x64-windows-static"
GENERAL_LINUX_FLAGS: "-DCMAKE_BUILD_TYPE=Release"
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 ${{env.GENERAL_FLAGS}} ${{env.GENERAL_WIN_FLAGS}} ${{env.WIN32_FLAGS}} ${{env.V5_FLAGS}}
cmake --build build_v5 --parallel --config Release
cmake -B build_v5U ${{env.GENERAL_FLAGS}} ${{env.GENERAL_WIN_FLAGS}} ${{env.WIN32_FLAGS}} ${{env.V5U_FLAGS}}
cmake --build build_v5U --parallel --config Release
- name: Move artifacts
run: |
mkdir artifacts
ls **/*.exe
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 ${{env.GENERAL_FLAGS}} ${{env.GENERAL_WIN_FLAGS}} ${{env.WIN64_FLAGS}} ${{env.V5_FLAGS}}
cmake --build build_v5 --parallel --config Release
cmake -B build_v5U ${{env.GENERAL_FLAGS}} ${{env.GENERAL_WIN_FLAGS}} ${{env.WIN64_FLAGS}} ${{env.V5U_FLAGS}}
cmake --build build_v5U --parallel --config Release
- name: Move artifacts
run: |
mkdir artifacts
ls **/*.exe
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 ${{env.GENERAL_FLAGS}} ${{env.V5_FLAGS}}
cmake --build build_v5 --parallel
cmake -B build_v5U ${{env.GENERAL_FLAGS}} ${{env.V5U_FLAGS}}
cmake --build build_v5U --parallel
- name: Build RSDKv5 + U SDL2
run: |
cmake -B build_v5 ${{env.GENERAL_FLAGS}} ${{env.V5_FLAGS}} -DRETRO_SUBSYSTEM=SDL2
cmake --build build_v5 --parallel
cmake -B build_v5U ${{env.GENERAL_FLAGS}} ${{env.V5U_FLAGS}} -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