Skip to content

Commit 7956832

Browse files
committed
Add darwin-devel Github CI job.
1 parent 236ffcd commit 7956832

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/main.yml

+14
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ env:
44
MZXDEPS_DEBIAN_SDL2: "zlib1g-dev libpng-dev libogg-dev libvorbis-dev libsdl2-dev"
55
MZXDEPS_DEBIAN_MISC: "libsdl1.2-dev libegl1-mesa-dev libmikmod-dev libopenmpt-dev"
66
MZXDEPS_DEBIAN_CROSS: "p7zip-full"
7+
MZXDEPS_MACOS: "libpng libogg libvorbis sdl2"
78
MZX_MAKE: "make -j4"
89

910
on:
@@ -133,6 +134,19 @@ jobs:
133134
run: LDFLAGS="-static" $MZX_MAKE
134135
# TODO: tests
135136

137+
darwin-devel:
138+
runs-on: macos-latest
139+
steps:
140+
- uses: actions/checkout@v3
141+
- name: Install dependencies
142+
run: brew install $MZXDEPS_MACOS
143+
- name: Configure
144+
run: ./config.sh --platform darwin-devel --prefix /etc/local --enable-release --enable-sdlaccel
145+
- name: Build
146+
run: $MZX_MAKE V=1
147+
- name: Run tests
148+
run: $MZX_MAKE test
149+
136150
MSYS2-MINGW64:
137151
runs-on: windows-latest
138152
defaults:

src/utils/y4m2smzx.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@
2424
#include "smzxconv.h"
2525
#include "y4m.h"
2626

27-
#ifdef _WIN32
2827
#define SKIP_SDL
28+
#ifdef SKIP_SDL
29+
// Shut Up GCC
2930
#endif
3031
#include "../graphics.h"
3132
#include "../platform.h"

0 commit comments

Comments
 (0)