Skip to content

Commit

Permalink
Disable android workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Aug 2, 2024
1 parent 431b080 commit 8c73b78
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 52 deletions.
102 changes: 51 additions & 51 deletions .github/workflows/build_and_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,52 +213,52 @@ jobs:
name: teavm-natives
path: ./imgui/imgui-build/build/c++/libs/

build_android:
name: Build Android
runs-on: ubuntu-latest

steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout code
uses: actions/checkout@v4

- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: 11

- name: Set up MinGW
run: |
sudo apt install -y --force-yes mingw-w64 lib32z1
- name: Install NDK
id: setup-ndk
uses: nttld/setup-ndk@v1
with:
ndk-version: r25c
add-to-path: false

- name: Change wrapper permissions
run: chmod +x ./gradlew

- name: Download sources
run: ./gradlew download_all_sources

- name: Build project
run: ./gradlew :imgui:imgui-build:build_project_android
env:
NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Upload natives
uses: actions/upload-artifact@v4
with:
name: android-natives
path: ./imgui/imgui-build/build/c++/libs/
# build_android:
# name: Build Android
# runs-on: ubuntu-latest
#
# steps:
# - name: Cancel Previous Runs
# uses: styfle/[email protected]
# with:
# access_token: ${{ github.token }}
#
# - name: Checkout code
# uses: actions/checkout@v4
#
# - name: Set up JDK 11
# uses: actions/setup-java@v4
# with:
# distribution: "zulu"
# java-version: 11
#
# - name: Set up MinGW
# run: |
# sudo apt install -y --force-yes mingw-w64 lib32z1
#
# - name: Install NDK
# id: setup-ndk
# uses: nttld/setup-ndk@v1
# with:
# ndk-version: r25c
# add-to-path: false
#
# - name: Change wrapper permissions
# run: chmod +x ./gradlew
#
# - name: Download sources
# run: ./gradlew download_all_sources
#
# - name: Build project
# run: ./gradlew :imgui:imgui-build:build_project_android
# env:
# NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
#
# - name: Upload natives
# uses: actions/upload-artifact@v4
# with:
# name: android-natives
# path: ./imgui/imgui-build/build/c++/libs/

upload_natives:
name: Upload Natives
Expand Down Expand Up @@ -313,11 +313,11 @@ jobs:
name: mac-natives
path: ./imgui/imgui-build/build/c++/libs/

- name: Download android natives
uses: actions/download-artifact@v4
with:
name: android-natives
path: ./imgui/imgui-build/build/c++/libs/
# - name: Download android natives
# uses: actions/download-artifact@v4
# with:
# name: android-natives
# path: ./imgui/imgui-build/build/c++/libs/

- name: Download teavm natives
uses: actions/download-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion imgui/imgui-build/src/main/java/BuildImGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void onAddTarget(BuildToolOptions op, IDLReader idlReader, ArrayList<Buil
}
if(op.android) {
// TODO fix android input and ui scale (Widgets are too small)
// targets.add(getAndroidTarget(op));
targets.add(getAndroidTarget(op));
}
// if(op.iOS) {
// targets.add(getIOSTarget(op));
Expand Down

0 comments on commit 8c73b78

Please sign in to comment.