Skip to content

Update minimal.c

Update minimal.c #4

Workflow file for this run

name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CTEST_OUTPUT_ON_FAILURE: 1
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
- os: macos-latest
- os: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Homebrew (Linux)
id: set-up-homebrew
if: matrix.os == 'ubuntu-latest'
uses: Homebrew/actions/setup-homebrew@master
- name: Install SDL via homebrew (Linux)
# Because ubuntu 22 doesn't have the latest SDL libs
if: matrix.os == 'ubuntu-latest'
run: brew install sdl2
- name: Install packages (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt install gcc-10 g++-10
# sudo apt install libsdl2-dev libsdl2-mixer-dev gcc-10 g++-10
- name: Install packages (macOS)
if: matrix.os == 'macos-latest'
run: |
sh build/macos/install-sdl2.sh
- name: Install dependencies (Windows)
if: matrix.os == 'windows-latest'
run: C:\vcpkg\vcpkg.exe install --triplet x64-windows sdl2
- name: Configure CMake
if: matrix.os != 'windows-latest'
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -Wno-dev examples
- name: Configure CMake (Windows)
if: matrix.os == 'windows-latest'
run: cmake -B ${{github.workspace}}/build -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows examples
- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build