Skip to content

Update ReadMe.md

Update ReadMe.md #210

Workflow file for this run

name: build
on: [push, pull_request]
env:
BUILD_TYPE: Release
jobs:
build-under-unix:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install Dependencies on Ubuntu
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install build-essential libsdl2-* python3 llvm
- name: Install Dependencies on MacOS
if: runner.os == 'maxOS'
run: brew install sdl2 sdl2_mixer sdl2_net sdl2_image sdl2_ttf python3 llvm
- name: Pull Submodules
run: git submodule update --init --recursive
- name: Configure CMake
run: cmake -S . -B cmake-build -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build cmake-build
- name: Run Unittests
run: cd cmake-build && ctest -j8 -C Debug -L NoInteractive --output-on-failure
build-under-windows:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
arch: [x86_64]
defaults:
run:
shell: msys2 {0}
steps:
- name: Setup MSYS2 x64
uses: msys2/setup-msys2@v2
if: matrix.arch == 'x86_64'
with:
msystem: MINGW64
update: true
install: base-devel git gcc mingw-w64-${{matrix.arch}}-cmake mingw-w64-${{matrix.arch}}-gcc python3 python3-pip llvm
- name: Check out repository code
uses: actions/checkout@v3
- name: Pull Submodules
run: git submodule update --init --recursive
- name: Configure CMake
run: cmake -S . -B cmake-build -DFETCH_SDL=ON -DAUTO_FORMAT=OFF -DCMAKE_BUILD_TYPE=Release
- name: Build CMake
run: cmake --build cmake-build
- name: Run Unittest
run: cd cmake-build |
ctest -j8 -C Debug -L NoInteractive --output-on-failure