Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Mac XCode Projects Take 2 #247

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
MacOS Autobuild test
plz work
  • Loading branch information
KirbyKid256 committed Sep 6, 2024
commit d80c49feed5ad9bd78247d9acf39e77d982d256f
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
WIN64_FLAGS: "-DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_PREFIX_PATH=C:/vcpkg/installed/x64-windows-static/"
# FIXME: For some reason ubuntu enables _FORTIFY_SOURCE by default, so let's override it to prevent IO bugs
GENERAL_LINUX_FLAGS: "-DCMAKE_CXX_FLAGS='-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0'"
GENERAL_MACOS_FLAGS: "OTHER_CFLAGS='-DRSDK_AUTOBUILD=1 -DRETRO_DEV_EXTRA=\"Darwin\ -\ AppleClang\"'"

jobs:
v3-windows:
Expand Down Expand Up @@ -135,3 +136,42 @@ jobs:
with:
name: v3-linux
path: linux.tar.gz
v3-macOS:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Download libogg, libvorbis, and libtheora for easier includes
run: |
curl "https://ftp.osuosl.org/pub/xiph/releases/ogg/libogg-1.3.5.zip" --output "libogg.zip"
unzip libogg.zip -d ./dependencies/mac/
mv ./dependencies/mac/libogg-1.3.5 ./dependencies/mac/libogg
curl "https://ftp.osuosl.org/pub/xiph/releases/vorbis/libvorbis-1.3.7.zip" --output "libvorbis.zip"
unzip libvorbis.zip -d ./dependencies/mac/
mv ./dependencies/mac/libvorbis-1.3.7 ./dependencies/mac/libvorbis
curl "https://ftp.osuosl.org/pub/xiph/releases/theora/libtheora-1.1.1.zip" --output "libtheora.zip"
unzip libtheora.zip -d ./dependencies/mac/
mv ./dependencies/mac/libtheora-1.1.1 ./dependencies/mac/libtheora
- name: Download SDL2
run: |
curl "https://libsdl.org/release/SDL2-2.30.7.dmg" --output "SDL2.dmg"
hdiutil attach SDL2.dmg
mv /Volumes/SDL2/SDL2.framework ./dependencies/mac
- name: Generate Vorbis headers
working-directory: ./dependencies/mac/libogg/
run: |
./configure
- name: Build RSDKv3
run: |
xcodebuild -project RSDKv3.xcodeproj -scheme RSDKv3 DSTROOT="./build" archive ${{env.GENERAL_MACOS_FLAGS}}
- name: Zip the app ourselves (Important step to retain symlinks)
run: |
cd ./build/Applications/
zip -r RSDKv3.zip ./RSDKv3.app/
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: v3-mac
path: build/Applications/RSDKv3.zip