Skip to content

Commit

Permalink
Add darwin-devel Github CI job. (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceLR authored Jan 24, 2024
1 parent 236ffcd commit 9b17356
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
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 /usr/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
3 changes: 2 additions & 1 deletion src/utils/y4m2smzx.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
#include "smzxconv.h"
#include "y4m.h"

#ifdef _WIN32
#define SKIP_SDL
#ifdef SKIP_SDL
// Shut Up GCC
#endif
#include "../graphics.h"
#include "../platform.h"
Expand Down

0 comments on commit 9b17356

Please sign in to comment.