Skip to content

ci: use main branch from setup-sdl (v1 branch does not understand new… #17

ci: use main branch from setup-sdl (v1 branch does not understand new…

ci: use main branch from setup-sdl (v1 branch does not understand new… #17

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
desktop:
name: ${{ matrix.platform.name }}
runs-on: ${{ matrix.platform.os }}
strategy:
matrix:
platform:
- { name: Linux, os: ubuntu-latest }
- { name: Windows, os: windows-latest }
- { name: MacOS, os: macos-latest }
steps:
- name: Set up SDL
id: sdl
uses: libsdl-org/setup-sdl@main
with:
version: sdl3-head
- name: Get project sources
uses: actions/checkout@v4
- name: Configure (CMake)
run: cmake -B build ${{ matrix.platform.flags }} -DDOWNLOAD_DEPENDENCIES=OFF
- name: Build (CMake)
run: cmake --build build/
emscripten:
name: Emscripten
runs-on: ubuntu-latest
steps:
- name: Get project sources
uses: actions/checkout@v4
- uses: mymindstorm/setup-emsdk@master
- name: Configure (CMake)
run: emcmake cmake -B build ${{ matrix.platform.flags }} -DDOWNLOAD_DEPENDENCIES=ON
- name: Build (CMake)
run: cmake --build build/