Skip to content

Commit 2b14e18

Browse files
committed
update(main): Update workflow & cmakelist for iOS geode
1 parent 672f00e commit 2b14e18

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/multi-platform.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
os: ubuntu-latest
2727
target: Android64
2828

29+
- name: iOS
30+
os: macos-latest
31+
target: iOS
32+
2933
name: ${{ matrix.config.name }}
3034
runs-on: ${{ matrix.config.os }}
3135

@@ -41,6 +45,8 @@ jobs:
4145
combine: true
4246
export-pdb: true
4347
target: ${{ matrix.config.target }}
48+
cli: nightly
49+
sdk: nightly
4450

4551
package:
4652
name: Package builds
@@ -50,6 +56,8 @@ jobs:
5056
steps:
5157
- uses: geode-sdk/build-geode-mod/combine@main
5258
id: build
59+
with:
60+
cli: nightly
5361

5462
- uses: actions/upload-artifact@v4
5563
with:

CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
cmake_minimum_required(VERSION 3.21)
22
set(CMAKE_CXX_STANDARD 20)
33
set(CMAKE_CXX_STANDARD_REQUIRED ON)
4-
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
4+
5+
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "iOS" OR IOS)
6+
set(CMAKE_OSX_ARCHITECTURES "arm64")
7+
add_definitions(-DGLES_SILENCE_DEPRECATION)
8+
else()
9+
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
10+
endif()
11+
512
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
613

714
project(BadgeAPI VERSION 1.0.0)

0 commit comments

Comments
 (0)