-
Notifications
You must be signed in to change notification settings - Fork 21
88 lines (77 loc) · 1.91 KB
/
test.yaml
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: CI
on:
push:
branches-ignore:
- 'screenshots'
paths:
- '**'
- '!**.md'
- '!doc/**'
- '!schema/**'
- '!.github/workflows/**'
- '.github/workflows/test.yaml'
pull_request:
branches-ignore:
- 'screenshots'
paths:
- '**'
- '!**.md'
- '!doc/**'
- '!schema/**'
- '!.github/workflows/**'
- '.github/workflows/test.yaml'
jobs:
test-ubuntu:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get update -y -qq
sudo apt-get install coreutils build-essential libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build DEBUG
run: make native CONF=DEBUG -j2
- name: Run tests
run: make test CONF=DEBUG
test-macos:
runs-on: macos-latest
steps:
- name: Install dependencies
run: |
brew install coreutils SDL2 sdl2_ttf sdl2_image openssl@1.1
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build DEBUG
run: make native CONF=DEBUG -j2
- name: Run tests
run: make test CONF=DEBUG
test-win64:
runs-on: windows-latest
steps:
- uses: msys2/setup-msys2@v2
with:
release: false
update: true
install: >-
base-devel
coreutils
make
mingw-w64-x86_64-toolchain
mingw64/mingw-w64-x86_64-SDL2
mingw64/mingw-w64-x86_64-SDL2_image
mingw64/mingw-w64-x86_64-SDL2_ttf
mingw64/mingw-w64-x86_64-freetype
mingw64/mingw-w64-x86_64-openssl
p7zip
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build DEBUG
shell: msys2 {0}
run: make native CONF=DEBUG -j2
- name: Run tests
shell: msys2 {0}
run: make test CONF=DEBUG