Skip to content

Commit

Permalink
CI: Add MSYS2 job
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 committed Feb 20, 2025
1 parent 9d480e3 commit 6696aae
Showing 1 changed file with 81 additions and 47 deletions.
128 changes: 81 additions & 47 deletions .github/workflows/meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,59 +34,93 @@ jobs:
run: |
mk/test-meson-build.sh
freebsd:
runs-on: ubuntu-latest
name: FreeBSD
steps:
- uses: actions/checkout@v4
- name: Test in FreeBSD
id: test
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: |
pkg install -y \
bash \
meson \
cmake \
cppunit \
curl \
freetype2 \
fribidi \
ftgl \
git \
glew \
jpeg-turbo \
libGLU \
libircclient \
libogg \
libvorbis \
libX11 \
libxml2 \
lua53 \
mesa-libs \
miniupnpc \
openal-soft \
pkgconf \
png \
sdl2 \
wx30-gtk3
#freebsd:
#runs-on: ubuntu-latest
#name: FreeBSD
#steps:
#- uses: actions/checkout@v4
#- name: Test in FreeBSD
#id: test
#uses: vmactions/freebsd-vm@v1
#with:
#usesh: true
#prepare: |
#pkg install -y \
#bash \
#meson \
#cmake \
#cppunit \
#curl \
#freetype2 \
#fribidi \
#ftgl \
#git \
#glew \
#jpeg-turbo \
#libGLU \
#libircclient \
#libogg \
#libvorbis \
#libX11 \
#libxml2 \
#lua53 \
#mesa-libs \
#miniupnpc \
#openal-soft \
#pkgconf \
#png \
#sdl2 \
#wx30-gtk3

#run: |
#git config --global --add safe.directory /home/runner/work/megaglest-source/megaglest-source
#cd /usr/local/bin
#ln -s wxgtk3u-3.0-config wx-config
#cd -
#mk/test-meson-build.sh

run: |
git config --global --add safe.directory /home/runner/work/megaglest-source/megaglest-source
cd /usr/local/bin
ln -s wxgtk3u-3.0-config wx-config
cd -
mk/test-meson-build.sh
#macos:
#runs-on: macos-latest
#steps:
#- uses: actions/checkout@v4

macos:
runs-on: macos-latest
#- name: Get dependencies
#run: |
#mk/macos/setupBuildDeps.sh

#- name: Build MegaGlest With Clang Compiler
#run: |
#mk/test-meson-build.sh

MSYS:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: MSYS
install: >-
bison
dos2unix
flex
git
pacboy: >-
gcc:p
cmake:p
ninja:p
pkgconf:p
python-certifi:p
python-pip:p
pacman: >-
mingw-w64-libpng
mingw-w64-SDL2
# Make sure Python is updated to >=3.11 (fix https://github.com/msys2/MINGW-packages/issues/17415).
update: true

- name: Get dependencies
- name: Install packages
shell: msys2 {0}
run: |
mk/macos/setupBuildDeps.sh
python -m pip install git+https://github.com/mesonbuild/meson
- name: Build MegaGlest With Clang Compiler
run: |
Expand Down

0 comments on commit 6696aae

Please sign in to comment.