-
Notifications
You must be signed in to change notification settings - Fork 27
58 lines (52 loc) · 1.9 KB
/
compile_gl.yml
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
57
name: Check compile GL
on: [push, pull_request]
jobs:
Build:
name: ${{ matrix.platform.name }}
runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}
strategy:
fail-fast: false
matrix:
platform:
- { name: Windows (mingw32), os: windows-latest, shell: 'msys2 {0}', msystem: mingw32, msys-env: mingw-w64-i686 }
- { name: Windows (mingw64), os: windows-latest, shell: 'msys2 {0}', msystem: mingw64, msys-env: mingw-w64-x86_64 }
- { name: Linux, os: ubuntu-latest, shell: bash }
- { name: MacOS, os: macos-latest, shell: bash }
test-dirs: [examples_pico_gfx]
steps:
- name: Set up MSYS2
if: matrix.platform.shell == 'msys2 {0}'
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.platform.msystem }}
install: >-
${{ matrix.platform.msys-env }}-clang
make
- name: Setup Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install libsdl2-dev
- name: Setup MinGW64 Dependences
if: runner.os == 'Windows' && matrix.platform.msystem == 'mingw64'
run: |
pacman --noconfirm -S mingw-w64-x86_64-pkg-config
pacman --noconfirm -S mingw-w64-x86_64-SDL2
- name: Setup MinGW32 Dependences
if: runner.os == 'Windows' && matrix.platform.msystem == 'mingw32'
run: |
pacman --noconfirm -S mingw-w64-i686-pkg-config
pacman --noconfirm -S mingw-w64-i686-SDL2
- name: Setup MacOS Dependences
if: runner.os == 'MacOS'
run: |
brew install sdl2
- uses: actions/checkout@v2
- name: Build and run examples
run: |
make clean
make all
working-directory: ${{ matrix.test-dirs }}