Update CI workflow to build via XCode.

This commit is contained in:
Christian Speckner 2025-05-29 21:49:46 +02:00
parent 236b6abea1
commit 4786e8e277
1 changed files with 9 additions and 7 deletions

View File

@ -26,22 +26,24 @@ jobs:
name: macOS
runs-on: macos-latest
env:
SDL3_version: 3.2.14
SDL3_VERSION: 3.2.14
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.2'
xcode-version: '16.4'
- name: Check out the repository
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
- name: Install SDL3
run: |
curl https://www.libsdl.org/release/SDL3-$SDL3_version.tar.gz | tar xzf -
mkdir SDL3-$SDL3_version/build
cd SDL3-$SDL3_version/build
../configure && make -j3 && sudo make install
wget https://github.com/libsdl-org/SDL/releases/download/release-${SDL3_VERSION}/SDL3-${SDL3_VERSION}.dmg
hdiutil attach SDL3-${SDL3_VERSION}.dmg
mkdir -p src/os/macos/Frameworks
cp -Rv /Volumes/SDL3/SDL3.xcframework src/os/macos/Frameworks
hdiutil detach /Volumes/SDL3
- name: Build Stella
run: |
./configure && make -j3 all
cd src/os/macos
xcodebuild
windows:
name: Windows