1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57name: Tests
on: [push, pull_request]
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Dependencies
run: sudo apt-get install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev
- name: Configure
run: cmake -B build .
- name: Build
run: cmake --build build --config Release
- name: Test
working-directory: build
run: ctest --output-on-failure
build-windows:
runs-on: windows-latest
strategy:
fail-fast: false
max-parallel: 1
matrix:
compiler: [mingw-w64,msvc16]
include:
- compiler: mingw-w64
PLATFORM_NAME: "MinGW Makefiles"
- compiler: msvc16
PLATFORM_NAME: "Visual Studio 16 2019"
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
# Setup Visual Studio
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.0.2
if: matrix.compiler == 'msvc16'
- name: Configure
run: cmake -G "${{ matrix.platform_name }}" -B build_${{ matrix.compiler }} .
- name: Build
run: cmake --build build_${{ matrix.compiler }} --config Release
- name: Test (mingw-w64)
run: build_${{ matrix.compiler }}\bin\raylib-lua-sol.exe tests/raylib-lua-sol-tests.lua
if: matrix.compiler == 'mingw-w64'
- name: Test (msvc16)
run: build_${{ matrix.compiler }}\bin\Release\raylib-lua-sol.exe tests/raylib-lua-sol-tests.lua
if: matrix.compiler == 'msvc16'