Debian Codegraph @

.github/workflows/main.yml

raw symbols SCIP
1 name: Build
2
3 on: [push, pull_request]
4
5 jobs:
6 Build:
7 name: ${{ matrix.platform.name }}
8 runs-on: ${{ matrix.platform.os }}
9 strategy:
10 matrix:
11 platform:
12 - { name: Linux, os: ubuntu-latest, flags: -GNinja }
13 - { name: Windows, os: windows-latest }
14 - { name: MacOS, os: macos-latest }
15 steps:
16 - name: Set up SDL
17 id: sdl
18 uses: libsdl-org/setup-sdl@main
19 with:
20 version: sdl2-latest
21 - name: Setup Linux dependencies
22 if: runner.os == 'Linux'
23 run: |
24 sudo apt-get update
25 sudo apt-get install cmake ninja-build lemon re2c
26 - name: Get MojoShader sources
27 uses: actions/checkout@v3
28 - name: Configure CMake
29 run: cmake -B build ${{ matrix.platform.flags }}
30 - name: Build
31 run: cmake --build build/