-
Notifications
You must be signed in to change notification settings - Fork 30
66 lines (62 loc) · 1.82 KB
/
ci.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
58
59
60
61
62
63
64
65
66
name: CI
on: [ push, pull_request, workflow_dispatch ]
jobs:
build-linux:
name: Linux polymost=${{ matrix.use_polymost }} gl=${{ matrix.use_opengl }} nogtk=${{ matrix.without_gtk || 1 }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
use_polymost: [ 0, 1 ]
use_opengl: [ 0, 1 ]
exclude:
- use_polymost: 1
use_opengl: 0
include:
- use_polymost: 1
use_opengl: 3
- use_polymost: 1
use_opengl: 'USE_GLES2'
without_gtk: '0'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libsdl2-dev libgtk-3-dev
- name: Make
run: |
cd "$GITHUB_WORKSPACE"
make USE_POLYMOST=${{ matrix.use_polymost }} \
USE_OPENGL=${{ matrix.use_opengl }} \
WITHOUT_GTK=${{ matrix.without_gtk || 1 }} \
USE_ASM=0 \
all
build-windows:
name: Windows polymost=${{ matrix.use_polymost }} gl=${{ matrix.use_opengl }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
use_polymost: [ 0, 1 ]
use_opengl: [ 0, 1 ]
exclude:
- use_polymost: 1
use_opengl: 0
include:
- use_polymost: 1
use_opengl: 3
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
sdk: 10.0.19041.0
- name: Make
shell: cmd
run: |
echo USE_POLYMOST=${{ matrix.use_polymost }} > Makefile.msvcuser
echo USE_OPENGL=${{ matrix.use_opengl }} >> Makefile.msvcuser
nmake /f Makefile.msvc all