Skip to content

ci: Try to use libsdl-org/setup-sdl to make SDL available everywhere. #39

ci: Try to use libsdl-org/setup-sdl to make SDL available everywhere.

ci: Try to use libsdl-org/setup-sdl to make SDL available everywhere. #39

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
Build:
name: ${{ matrix.platform.name }}
runs-on: ${{ matrix.platform.os }}
strategy:
matrix:
platform:
- { name: Linux, os: ubuntu-20.04, flags: -GNinja }
- { 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: sdl2-latest
- name: Setup Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install cmake ninja-build lemon re2c libvulkan-dev
- name: Get MojoShader sources
uses: actions/checkout@v2
- name: Configure CMake
run: cmake -B build ${{ matrix.platform.flags }}
- name: Build
run: cmake --build build/