-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/JunaMeinhold/HexaEngine.I…
- Loading branch information
Showing
4 changed files
with
170 additions
and
8 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,71 @@ | ||
name: Build cimgui Libraries (Android) | ||
|
||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
arch: x86_64 | ||
steps: | ||
- uses: actions/checkout@v4.1.7 | ||
with: | ||
repository: 'cimgui/cimgui' | ||
path: 'cimgui' | ||
submodules: true | ||
|
||
- name: Install dependencies on Ubuntu | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential cmake ninja-build | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
|
||
- name: Setup Android SDK | ||
uses: android-actions/setup-android@v2.0.10 | ||
|
||
- name: Install Android NDK | ||
run: sdkmanager --install "ndk-bundle" | ||
|
||
- name: Build for arm64-v8a | ||
run: | | ||
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_SYSTEM_NAME=Android \ | ||
-DCMAKE_ANDROID_NDK=$ANDROID_NDK_HOME \ | ||
-DCMAKE_ANDROID_ARCH_ABI=arm64-v8a \ | ||
-DCMAKE_ANDROID_NDK_TOOLCHAIN_VERSION=clang \ | ||
-DCMAKE_ANDROID_STL_TYPE=c++_shared \ | ||
-DCMAKE_ANDROID_API=21 \ | ||
-S cimgui \ | ||
-B cimgui/build/arm64-v8a | ||
cmake --build cimgui/build/arm64-v8a --config Release | ||
- name: Build for x86_64 | ||
run: | | ||
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_SYSTEM_NAME=Android \ | ||
-DCMAKE_ANDROID_NDK=$ANDROID_NDK_HOME \ | ||
-DCMAKE_ANDROID_ARCH_ABI=x86_64 \ | ||
-DCMAKE_ANDROID_NDK_TOOLCHAIN_VERSION=clang \ | ||
-DCMAKE_ANDROID_STL_TYPE=c++_shared \ | ||
-DCMAKE_ANDROID_API=21 \ | ||
-S cimgui \ | ||
-B cimgui/build/x86_64 | ||
cmake --build cimgui/build/x86_64 --config Release | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v4.3.4 | ||
with: | ||
name: ${{ matrix.os }}-${{ matrix.arch }}-artifacts | ||
path: | | ||
cimgui/build/arm64-v8a/*.so | ||
cimgui/build/x86_64/*.so | ||
if-no-files-found: ignore # 'warn' or 'ignore' or 'error' |
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,66 @@ | ||
name: Build cimgui Libraries (Debug config) | ||
|
||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
arch: x86_64 | ||
- os: ubuntu-latest | ||
arch: arm64 | ||
- os: windows-latest | ||
arch: x86_64 | ||
- os: windows-latest | ||
arch: x86 | ||
- os: windows-latest | ||
arch: arm64 | ||
- os: macos-latest | ||
arch: x86_64 | ||
- os: macos-latest | ||
arch: arm64 | ||
steps: | ||
- uses: actions/checkout@v4.1.7 | ||
with: | ||
repository: 'cimgui/cimgui' | ||
path: 'cimgui' | ||
submodules: true | ||
|
||
- name: Install dependencies on Ubuntu | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential cmake | ||
- name: Install dependencies on macOS | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
brew update | ||
brew install cmake | ||
- name: Install dependencies on Windows | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' | ||
- name: Configure cimgui with CMake for macOS ARM64 | ||
if: matrix.arch == 'arm64' && matrix.os == 'macos-latest' | ||
run: cmake -S cimgui -B cimgui/build -DCMAKE_OSX_ARCHITECTURES=arm64 | ||
|
||
- name: Configure cimgui with CMake | ||
if: matrix.arch != 'arm64' || matrix.os != 'macos-latest' | ||
run: cmake -S cimgui -B cimgui/build | ||
|
||
- name: Build cimgui | ||
run: cmake --build cimgui/build --config Debug | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v4.3.4 | ||
with: | ||
name: ${{ matrix.os }}-${{ matrix.arch }}-artifacts | ||
path: | | ||
cimgui/build/ | ||
if-no-files-found: ignore # 'warn' or 'ignore' or 'error' |
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