forked from Kenix3/libultraship
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
240 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,25 @@ jobs: | |
name: soh-mac | ||
path: build-cmake/src/*.a | ||
if-no-files-found: error | ||
build-ios: | ||
runs-on: macos-12 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ${{ runner.os }}-ccache | ||
- name: Build libultraship | ||
run: | | ||
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" | ||
cmake --no-warn-unused-cli -H. -Bbuild-cmake -GXcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_DEPLOYMENT_TARGET=14.0 -DCMAKE_BUILD_TYPE:STRING=Release | ||
cmake --build build-cmake --config Release --parallel 10 | ||
- name: Upload build | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: soh-ios | ||
path: build-cmake/src/*/*.a | ||
if-no-files-found: error | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#=================== SDL2 =================== | ||
find_package(SDL2 QUIET) | ||
if (NOT ${SDL2_FOUND}) | ||
include(FetchContent) | ||
FetchContent_Declare( | ||
SDL2 | ||
GIT_REPOSITORY https://github.com/libsdl-org/SDL.git | ||
GIT_TAG release-2.28.1 | ||
OVERRIDE_FIND_PACKAGE | ||
) | ||
FetchContent_MakeAvailable(SDL2) | ||
endif() | ||
|
||
#=================== nlohmann-json =================== | ||
find_package(nlohmann_json QUIET) | ||
if (NOT ${nlohmann_json_FOUND}) | ||
FetchContent_Declare( | ||
nlohmann_json | ||
GIT_REPOSITORY https://github.com/nlohmann/json.git | ||
GIT_TAG v3.11.3 | ||
OVERRIDE_FIND_PACKAGE | ||
) | ||
FetchContent_MakeAvailable(nlohmann_json) | ||
endif() | ||
|
||
#=================== libzip =================== | ||
find_package(libzip QUIET) | ||
if (NOT ${libzip_FOUND}) | ||
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW) | ||
set(BUILD_TOOLS OFF) | ||
set(BUILD_REGRESS OFF) | ||
set(BUILD_EXAMPLES OFF) | ||
set(BUILD_DOC OFF) | ||
set(BUILD_OSSFUZZ OFF) | ||
set(BUILD_SHARED_LIBS OFF) | ||
FetchContent_Declare( | ||
libzip | ||
GIT_REPOSITORY https://github.com/nih-at/libzip.git | ||
GIT_TAG v1.10.1 | ||
OVERRIDE_FIND_PACKAGE | ||
) | ||
FetchContent_MakeAvailable(libzip) | ||
list(APPEND ADDITIONAL_LIB_INCLUDES ${libzip_SOURCE_DIR}/lib ${libzip_BINARY_DIR}) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.