Skip to content

Commit 6696aae

Browse files
committed
CI: Add MSYS2 job
1 parent 9d480e3 commit 6696aae

File tree

1 file changed

+81
-47
lines changed

1 file changed

+81
-47
lines changed

.github/workflows/meson.yml

Lines changed: 81 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -34,59 +34,93 @@ jobs:
3434
run: |
3535
mk/test-meson-build.sh
3636
37-
freebsd:
38-
runs-on: ubuntu-latest
39-
name: FreeBSD
40-
steps:
41-
- uses: actions/checkout@v4
42-
- name: Test in FreeBSD
43-
id: test
44-
uses: vmactions/freebsd-vm@v1
45-
with:
46-
usesh: true
47-
prepare: |
48-
pkg install -y \
49-
bash \
50-
meson \
51-
cmake \
52-
cppunit \
53-
curl \
54-
freetype2 \
55-
fribidi \
56-
ftgl \
57-
git \
58-
glew \
59-
jpeg-turbo \
60-
libGLU \
61-
libircclient \
62-
libogg \
63-
libvorbis \
64-
libX11 \
65-
libxml2 \
66-
lua53 \
67-
mesa-libs \
68-
miniupnpc \
69-
openal-soft \
70-
pkgconf \
71-
png \
72-
sdl2 \
73-
wx30-gtk3
37+
#freebsd:
38+
#runs-on: ubuntu-latest
39+
#name: FreeBSD
40+
#steps:
41+
#- uses: actions/checkout@v4
42+
#- name: Test in FreeBSD
43+
#id: test
44+
#uses: vmactions/freebsd-vm@v1
45+
#with:
46+
#usesh: true
47+
#prepare: |
48+
#pkg install -y \
49+
#bash \
50+
#meson \
51+
#cmake \
52+
#cppunit \
53+
#curl \
54+
#freetype2 \
55+
#fribidi \
56+
#ftgl \
57+
#git \
58+
#glew \
59+
#jpeg-turbo \
60+
#libGLU \
61+
#libircclient \
62+
#libogg \
63+
#libvorbis \
64+
#libX11 \
65+
#libxml2 \
66+
#lua53 \
67+
#mesa-libs \
68+
#miniupnpc \
69+
#openal-soft \
70+
#pkgconf \
71+
#png \
72+
#sdl2 \
73+
#wx30-gtk3
74+
75+
#run: |
76+
#git config --global --add safe.directory /home/runner/work/megaglest-source/megaglest-source
77+
#cd /usr/local/bin
78+
#ln -s wxgtk3u-3.0-config wx-config
79+
#cd -
80+
#mk/test-meson-build.sh
7481

75-
run: |
76-
git config --global --add safe.directory /home/runner/work/megaglest-source/megaglest-source
77-
cd /usr/local/bin
78-
ln -s wxgtk3u-3.0-config wx-config
79-
cd -
80-
mk/test-meson-build.sh
82+
#macos:
83+
#runs-on: macos-latest
84+
#steps:
85+
#- uses: actions/checkout@v4
8186

82-
macos:
83-
runs-on: macos-latest
87+
#- name: Get dependencies
88+
#run: |
89+
#mk/macos/setupBuildDeps.sh
90+
91+
#- name: Build MegaGlest With Clang Compiler
92+
#run: |
93+
#mk/test-meson-build.sh
94+
95+
MSYS:
96+
runs-on: windows-latest
8497
steps:
8598
- uses: actions/checkout@v4
99+
- uses: msys2/setup-msys2@v2
100+
with:
101+
msystem: MSYS
102+
install: >-
103+
bison
104+
dos2unix
105+
flex
106+
git
107+
pacboy: >-
108+
gcc:p
109+
cmake:p
110+
ninja:p
111+
pkgconf:p
112+
python-certifi:p
113+
python-pip:p
114+
pacman: >-
115+
mingw-w64-libpng
116+
mingw-w64-SDL2
117+
# Make sure Python is updated to >=3.11 (fix https://github.com/msys2/MINGW-packages/issues/17415).
118+
update: true
86119

87-
- name: Get dependencies
120+
- name: Install packages
121+
shell: msys2 {0}
88122
run: |
89-
mk/macos/setupBuildDeps.sh
123+
python -m pip install git+https://github.com/mesonbuild/meson
90124
91125
- name: Build MegaGlest With Clang Compiler
92126
run: |

0 commit comments

Comments
 (0)