Skip to content

Commit ff8adf5

Browse files
committed
build for ios
1 parent d6baba1 commit ff8adf5

File tree

8 files changed

+23
-9
lines changed

8 files changed

+23
-9
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
- name: macOS
1919
os: macos-latest
2020

21+
- name: iOS
22+
os: macos-latest
23+
target: iOS
24+
2125
- name: Android32
2226
os: ubuntu-latest
2327
target: Android32
@@ -33,7 +37,7 @@ jobs:
3337
- uses: actions/checkout@v4
3438

3539
- name: Build the mod
36-
continue-on-error: ${{ matrix.config.name == 'macOS' || matrix.config.name == 'Android32' }}
40+
continue-on-error: ${{ matrix.config.name == 'macOS' || matrix.config.name == 'iOS' || matrix.config.name == 'Android32' }}
3741
uses: geode-sdk/build-geode-mod@main
3842
with:
3943
combine: true
@@ -50,7 +54,7 @@ jobs:
5054
- uses: geode-sdk/build-geode-mod/combine@main
5155
id: build
5256

53-
- uses: actions/upload-artifact@v3
57+
- uses: actions/upload-artifact@v4
5458
with:
5559
name: Build Output
5660
path: ${{ steps.build.outputs.build-output }}

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
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+
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "iOS" OR IOS)
5+
set(CMAKE_OSX_ARCHITECTURES "arm64")
6+
else()
7+
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
8+
endif()
59
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
610

711
project(geode-mods)

circle-tool/mod.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"gd": {
44
"win": "2.2074",
55
"android": "2.2074",
6-
"mac": "2.2074"
6+
"mac": "2.2074",
7+
"ios": "2.2074"
78
},
89
"version": "v1.2.1",
910
"id": "mat.circle-tool",

ingame-screenshot/mod.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"gd": {
44
"win": "2.2074",
55
"android": "2.2074",
6-
"mac": "2.2074"
6+
"mac": "2.2074",
7+
"ios": "2.2074"
78
},
89
"version": "1.0.0",
910
"id": "mat.ingame-screenshot",

reference-image/mod.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"gd": {
44
"win": "2.2074",
55
"android": "2.2074",
6-
"mac": "2.2074"
6+
"mac": "2.2074",
7+
"ios": "2.2074"
78
},
89
"version": "v1.1.2",
910
"id": "mat.reference-image",

run-info/mod.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"gd": {
44
"win": "2.2074",
55
"android": "2.2074",
6-
"mac": "2.2074"
6+
"mac": "2.2074",
7+
"ios": "2.2074"
78
},
89
"version": "2.0.1",
910
"id": "mat.run-info",

scroll-zoom/mod.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"gd": {
44
"win": "2.2074",
55
"android": "2.2074",
6-
"mac": "2.2074"
6+
"mac": "2.2074",
7+
"ios": "2.2074"
78
},
89
"version": "v1.2.1",
910
"id": "mat.scroll-zoom",

song-preview/mod.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"gd": {
44
"win": "2.2074",
55
"android": "2.2074",
6-
"mac": "2.2074"
6+
"mac": "2.2074",
7+
"ios": "2.2074"
78
},
89
"version": "1.2.1",
910
"id": "mat.song-preview",

0 commit comments

Comments
 (0)