forked from angband/angband
-
Notifications
You must be signed in to change notification settings - Fork 1
89 lines (79 loc) · 2.08 KB
/
msys2.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
89
name: msys2
on:
push:
branches: [ master ]
pull_request:
jobs:
stock:
name: Stock
runs-on: windows-latest
defaults:
# Reduce verbosity and always run with msys2 as the default shell.
# See https://github.com/marketplace/actions/setup-msys2 .
run:
shell: msys2 {0}
steps:
- name: Set up prerequisites
uses: msys2/setup-msys2@v2
with:
update: true
install: >-
make
mingw-w64-x86_64-gcc
mingw-w64-x86_64-ncurses
- name: Clone Project
uses: actions/checkout@v3
- name: Build
run: |
cd src
make -f Makefile.msys2
sdl:
name: SDL2
runs-on: windows-latest
defaults:
# Reduce verbosity and always run with msys2 as the default shell.
# See https://github.com/marketplace/actions/setup-msys2 .
run:
shell: msys2 {0}
steps:
- name: Set up prerequisites
uses: msys2/setup-msys2@v2
with:
update: true
install: >-
make
mingw-w64-x86_64-gcc
mingw-w64-x86_64-SDL2
mingw-w64-x86_64-SDL2_ttf
mingw-w64-x86_64-SDL2_image
mingw-w64-x86_64-SDL2_mixer
- name: Clone Project
uses: actions/checkout@v3
- name: Build
run: |
cd src
make -f Makefile.msys2.sdl2 SOUND=yes
makefile-win:
name: Makefile-win
runs-on: windows-latest
defaults:
# Reduce verbosity and always run with msys2 as the default shell.
# See https://github.com/marketplace/actions/setup-msys2 .
run:
shell: msys2 {0}
steps:
- name: Set up prerequisites
uses: msys2/setup-msys2@v2
with:
update: true
# The libraries in src/win/lib and src/win/dll are 32-bit.
msystem: mingw32
install: >-
make
mingw-w64-i686-gcc
- name: Clone Project
uses: actions/checkout@v3
- name: Build
run: |
cd src
make -f Makefile.win MINGW=yes