Skip to content

Commit

Permalink
Add darwin-devel Github CI job.
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceLR committed Jan 24, 2024
1 parent 236ffcd commit fe6a568
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ env:
MZXDEPS_DEBIAN_SDL2: "zlib1g-dev libpng-dev libogg-dev libvorbis-dev libsdl2-dev"
MZXDEPS_DEBIAN_MISC: "libsdl1.2-dev libegl1-mesa-dev libmikmod-dev libopenmpt-dev"
MZXDEPS_DEBIAN_CROSS: "p7zip-full"
MZXDEPS_MACOS: "libpng libogg libvorbis sdl2"
MZX_MAKE: "make -j4"

on:
Expand Down Expand Up @@ -133,6 +134,19 @@ jobs:
run: LDFLAGS="-static" $MZX_MAKE
# TODO: tests

darwin-devel:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: brew install $MZXDEPS_MACOS
- name: Configure
run: ./config.sh --platform darwin-devel --prefix /etc/local --enable-release --enable-sdlaccel
- name: Build
run: $MZX_MAKE
- name: Run tests
run: $MZX_MAKE test

MSYS2-MINGW64:
runs-on: windows-latest
defaults:
Expand Down
2 changes: 2 additions & 0 deletions config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1177,6 +1177,8 @@ fi
#
if [ "$PLATFORM" != "unix" ] &&
[ "$PLATFORM" != "unix-devel" ] &&
[ "$PLATFORM" != "darwin" ] &&
[ "$PLATFORM" != "darwin-devel" ] &&
[ "$PLATFORM" != "gp2x" ] &&
[ "$PLATFORM" != "android" ]; then
echo "Force-disabling pthread on non-POSIX platforms."
Expand Down

0 comments on commit fe6a568

Please sign in to comment.