-
Notifications
You must be signed in to change notification settings - Fork 75
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
15 changed files
with
97 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Android | ||
|
||
# Builds _example_integration for Android | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
# - name: Setup interactive tmate session | ||
# uses: mxschmitt/action-tmate@v3 | ||
|
||
- name: invoke cmake to create gradle / android studio project | ||
# This will create the project | ||
# build_android/hello_imgui_demodocking_AndroidStudio | ||
run: | | ||
cd _example_integration | ||
mkdir -p external | ||
cd external | ||
ln -s ../../ imgui_bundle | ||
cd .. | ||
mkdir build_android | ||
cd build_android | ||
export ANDROID_HOME=/usr/local/lib/android/sdk | ||
../external/imgui_bundle/external/hello_imgui/hello_imgui/tools/android/cmake_arm-android.sh .. | ||
- name: gradlew build | ||
# This will build for all android architectures | ||
run: | | ||
export ANDROID_HOME=/usr/local/lib/android/sdk | ||
cd _example_integration/build_android/imgui_bundle_example_integration_AndroidStudio | ||
./gradlew build |
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 @@ | ||
name: "ios" | ||
|
||
# Builds _example_integration for iOS simulator | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
build: | ||
name: "ios" | ||
runs-on: macos-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
|
||
# - name: Setup interactive tmate session | ||
# uses: mxschmitt/action-tmate@v3 | ||
|
||
|
||
- name: CMake | ||
run: | | ||
cd _example_integration | ||
mkdir -p external | ||
cd external | ||
ln -s ../.. imgui_bundle | ||
cd .. | ||
mkdir build-ios | ||
cd build-ios | ||
cmake .. \ | ||
-GXcode \ | ||
-DCMAKE_TOOLCHAIN_FILE=../external/imgui_bundle/external/hello_imgui/hello_imgui/hello_imgui_cmake/ios-cmake/ios.toolchain.cmake \ | ||
-DHELLOIMGUI_USE_SDL_OPENGL3=ON \ | ||
-DPLATFORM=SIMULATOR64 | ||
- name: Build for simulator | ||
working-directory: _example_integration/build-ios | ||
run: | | ||
xcodebuild -configuration Release -project imgui_bundle_example_integration.xcodeproj -target ALL_BUILD -arch x86_64 -sdk iphonesimulator |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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