Skip to content

feat: add widescreen options #259

feat: add widescreen options

feat: add widescreen options #259

Workflow file for this run

name: Linux
on:
push:
branches: [ cmake ]
pull_request:
branches: [ cmake ]
env:
BUILD_TYPE: RelWithDebInfo
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install deps
run: sudo apt-get install libx11-dev libxcursor-dev libxi-dev libgl-dev libz-dev
- name: SDL -- cache
id: cache-sdl
uses: actions/cache@v3
with:
path: ${{github.workspace}}/3rdparty/SDL-2.26.5
key: ${{ runner.os }}-sdl-2.26.5
- name: SDL -- download
if: steps.cache-sdl.outputs.cache-hit != 'true'
run: git clone --depth 1 --branch release-2.26.5 https://github.com/libsdl-org/SDL.git SDL
- name: SDL -- configure
if: steps.cache-sdl.outputs.cache-hit != 'true'
run: cmake -B cmake-build-debug -DSDL_SHARED=0 -DSDL_STATIC=1 -DSDL_TEST=0 -DCMAKE_INSTALL_PREFIX=target-debug
working-directory: SDL
- name: SDL -- build and install
if: steps.cache-sdl.outputs.cache-hit != 'true'
run: |
cmake --build cmake-build-debug --target install
mkdir -p ${{github.workspace}}/3rdparty/SDL-2.26.5
cp -r target-debug/include ${{github.workspace}}/3rdparty/SDL-2.26.5/
cp -r target-debug/lib ${{github.workspace}}/3rdparty/SDL-2.26.5/
working-directory: SDL
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build -j3 --config ${{env.BUILD_TYPE}}
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: moonshine-runners-linux
path: build/MechoSoma/moonshine-runners