Skip to content

Config window

Config window #148

Workflow file for this run

name: Build app
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main", "dev" ]
jobs:
linux:
name: Build on Linux
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install cmake
uses: lukka/[email protected]
- name: Install dependencies
run: sudo apt install libsdl2-dev
- name: Build
run: mkdir -p build && cd build && cmake ../ && cmake --build . && cpack
windows:
name: Build on Windows
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install cmake
uses: lukka/[email protected]
- name: Install MinGW
uses: egor-tensin/setup-mingw@v2
- name: Install MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Install wget
run: choco install wget
- name: Install dependencies`
run: |
wget -nv https://github.com/libsdl-org/SDL/releases/download/release-2.26.3/SDL2-devel-2.26.3-mingw.zip
7z x -bd SDL2-devel-2.26.3-mingw.zip -omingw
wget -nv https://github.com/libsdl-org/SDL/releases/download/release-2.26.3/SDL2-devel-2.26.3-VC.zip
7z x -bd SDL2-devel-2.26.3-VC.zip -omsvc
- name: Build with MSVC
run: |
mkdir buildMSVC
cd buildMSVC
cmake -G "Visual Studio 17" -DSDL2_DIR=${{ github.workspace }}\msvc\SDL2-2.26.3\cmake -DSDL2_RUNTIME_DIR=${{ github.workspace }}\msvc\SDL2-2.26.3\lib\x64 ..\
cmake --build .
cd ..
- name: Build with MinGW
run: |
mkdir buildMinGW
cd buildMinGW
cmake -G "MinGW Makefiles" -DSDL2_DIR=${{ github.workspace }}\mingw\SDL2-2.26.3\cmake -DSDL2_RUNTIME_DIR=${{ github.workspace }}\mingw\SDL2-2.26.3\x86_64-mingw32\bin -DCMAKE_BUILD_TYPE=Release ..\
cmake --build .
macOS:
name: Build on MacOS
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install cmake
uses: lukka/[email protected]
- name: Install dependencies`
run: brew install sdl2
- name: Build
run: mkdir build && cd build && cmake ../ && cmake --build . && sudo cpack