foxygit / fake-08-xbox360 Log in
commit c3365a9ecfc72f82fae106429d1e7c3cac567d39
Author:     Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Wed Jul 27 06:33:32 2022 -0600
Commit:     Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Wed Jul 27 06:33:32 2022 -0600

    update ci to only build android libretro
---
 .github/workflows/build.yml      | 146 ++---------------------------------
 .github/workflows/build.yml.old  | 163 +++++++++++++++++++++++++++++++++++++++
 platform/libretro/jni/Android.mk |   2 +-
 3 files changed, 172 insertions(+), 139 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ab7c7d2..4cd0fe2 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -8,7 +8,7 @@ on:

 jobs:
   first:
-    name: 3DS
+    name: android-libretro
     runs-on: ubuntu-latest

     steps:
@@ -17,147 +17,17 @@ jobs:
         with:
           submodules : recursive

-      - name: Build
-        run: |
-          docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir devkitpro/devkitarm /bin/bash -ex /build_dir/.github/workflows/build3ds.sh
-
-      - uses: actions/upload-artifact@v2
-        with:
-          name: Nintendo 3DS
-          path: |
-            platform/3ds/*.3dsx
-            platform/3ds/*.cia
-
-  second:
-    name: Switch
-    runs-on: ubuntu-latest
-
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v2
-        with:
-          submodules : recursive
-
-      - name: Build
-        run: |
-          docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir devkitpro/devkita64 /bin/bash -ex /build_dir/.github/workflows/buildSwitch.sh
-
-      - uses: actions/upload-artifact@v2
-        with:
-          name: Nintendo Switch
-          path: |
-            platform/switch/*.nro
-
-  third:
-    name: WiiU
-    runs-on: ubuntu-latest
-
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v2
-        with:
-          submodules : recursive
-
-      - name: Build
-        run: |
-          docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir jondbell/devkitppc-wiiu-sdl2 /bin/bash -ex /build_dir/.github/workflows/buildWiiU.sh
-
-      - uses: actions/upload-artifact@v2
-        with:
-          name: Nintendo Wii U
-          path: |
-            platform/wiiu/*.rpx
-
-  fourth:
-    name: Vita
-    runs-on: ubuntu-latest
-
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v2
-        with:
-          submodules : recursive
-
-      - name: Build
-        run: |
-          docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir gnuton/vitasdk-docker:20220413 /bin/sh -ex /build_dir/.github/workflows/buildVita.sh
-
-      - uses: actions/upload-artifact@v2
-        with:
-          name: PS Vita
-          path: |
-            platform/vita/*.vpk
-
-  fifth:
-    name: Bittboy
-    runs-on: ubuntu-latest
-
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v2
+      - name: Setup NDK
+        uses: nttld/setup-ndk@v1
         with:
-          submodules : recursive
+          ndk-version: r21e

       - name: Build
-        run: |
-          docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir mcejp/arm-miyoo-linux-musleabi-gcc /bin/sh -ex /build_dir/.github/workflows/buildBittboy.sh
+      - runs: ndk-build NDK_PROJECT_PATH=platform/libretro/jni APP_BUILD_SCRIPT=platform/libretro/jni/Android.mk NDK_APPLICATION_MK=platform/libretro/jni/Application.mk

       - uses: actions/upload-artifact@v2
         with:
-          name: Bittboy
+          name: Android
           path: |
-            platform/bittboy/FAKE08
-            platform/bittboy/pico8.elf
-
-  sixth:
-    name: MiyooMini
-    runs-on: ubuntu-latest
-
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v2
-        with:
-          submodules : recursive
-
-      - name: Build
-        run: |
-          docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir jondbell/union-miyoomini-toolchain /bin/sh -ex /build_dir/.github/workflows/buildMiyooMini.sh
-
-      - uses: actions/upload-artifact@v2
-        with:
-          name: MiyooMini
-          path: |
-            platform/miyoomini/FAKE08
-
-  seventh:
-    name: Opendingux
-    runs-on: ubuntu-latest
-
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v2
-        with:
-          submodules : recursive
-
-      - name: Build
-        run: |
-          docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir jondbell/gcw0 /bin/sh -ex /build_dir/.github/workflows/buildGcw0.sh
-
-      - uses: actions/upload-artifact@v2
-        with:
-          name: Gcw0
-          path: |
-            platform/gcw0/fake08_gcw0.opk
-
-  eighth:
-    name: Tests
-    runs-on: ubuntu-latest
-
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v2
-        with:
-          submodules : recursive
-
-      - name: Build
-        run: make tests
+            platform/libretro/arm64-v8a/*.so
+            platform/libretro/armeabi-v7a/*.so
\ No newline at end of file
diff --git a/.github/workflows/build.yml.old b/.github/workflows/build.yml.old
new file mode 100644
index 0000000..ab7c7d2
--- /dev/null
+++ b/.github/workflows/build.yml.old
@@ -0,0 +1,163 @@
+name: fake-08
+
+on:
+  push:
+    branches: '**'
+  pull_request:
+    branches: [ $default-branch ]
+
+jobs:
+  first:
+    name: 3DS
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+        with:
+          submodules : recursive
+
+      - name: Build
+        run: |
+          docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir devkitpro/devkitarm /bin/bash -ex /build_dir/.github/workflows/build3ds.sh
+
+      - uses: actions/upload-artifact@v2
+        with:
+          name: Nintendo 3DS
+          path: |
+            platform/3ds/*.3dsx
+            platform/3ds/*.cia
+
+  second:
+    name: Switch
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+        with:
+          submodules : recursive
+
+      - name: Build
+        run: |
+          docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir devkitpro/devkita64 /bin/bash -ex /build_dir/.github/workflows/buildSwitch.sh
+
+      - uses: actions/upload-artifact@v2
+        with:
+          name: Nintendo Switch
+          path: |
+            platform/switch/*.nro
+
+  third:
+    name: WiiU
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+        with:
+          submodules : recursive
+
+      - name: Build
+        run: |
+          docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir jondbell/devkitppc-wiiu-sdl2 /bin/bash -ex /build_dir/.github/workflows/buildWiiU.sh
+
+      - uses: actions/upload-artifact@v2
+        with:
+          name: Nintendo Wii U
+          path: |
+            platform/wiiu/*.rpx
+
+  fourth:
+    name: Vita
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+        with:
+          submodules : recursive
+
+      - name: Build
+        run: |
+          docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir gnuton/vitasdk-docker:20220413 /bin/sh -ex /build_dir/.github/workflows/buildVita.sh
+
+      - uses: actions/upload-artifact@v2
+        with:
+          name: PS Vita
+          path: |
+            platform/vita/*.vpk
+
+  fifth:
+    name: Bittboy
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+        with:
+          submodules : recursive
+
+      - name: Build
+        run: |
+          docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir mcejp/arm-miyoo-linux-musleabi-gcc /bin/sh -ex /build_dir/.github/workflows/buildBittboy.sh
+
+      - uses: actions/upload-artifact@v2
+        with:
+          name: Bittboy
+          path: |
+            platform/bittboy/FAKE08
+            platform/bittboy/pico8.elf
+
+  sixth:
+    name: MiyooMini
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+        with:
+          submodules : recursive
+
+      - name: Build
+        run: |
+          docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir jondbell/union-miyoomini-toolchain /bin/sh -ex /build_dir/.github/workflows/buildMiyooMini.sh
+
+      - uses: actions/upload-artifact@v2
+        with:
+          name: MiyooMini
+          path: |
+            platform/miyoomini/FAKE08
+
+  seventh:
+    name: Opendingux
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+        with:
+          submodules : recursive
+
+      - name: Build
+        run: |
+          docker run -e ENABLE_COMPATIBILITY_REPORTING -v $GITHUB_WORKSPACE:/build_dir jondbell/gcw0 /bin/sh -ex /build_dir/.github/workflows/buildGcw0.sh
+
+      - uses: actions/upload-artifact@v2
+        with:
+          name: Gcw0
+          path: |
+            platform/gcw0/fake08_gcw0.opk
+
+  eighth:
+    name: Tests
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+        with:
+          submodules : recursive
+
+      - name: Build
+        run: make tests
diff --git a/platform/libretro/jni/Android.mk b/platform/libretro/jni/Android.mk
index 64faf78..87b2b18 100644
--- a/platform/libretro/jni/Android.mk
+++ b/platform/libretro/jni/Android.mk
@@ -1,7 +1,7 @@

 LOCAL_PATH := $(call my-dir)

-CORE_DIR := $(LOCAL_PATH)/
+CORE_DIR := $(LOCAL_PATH)/..

 include $(CORE_DIR)/Makefile.common