diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..54e0335 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,45 @@ +name: ASILoader + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + + - name: Checkout repository... + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Download AndroidModLoader`s mod template... + uses: wei/wget@v1 + with: + args: -O ./AML_src.zip https://github.com/RusJJ/AndroidModLoader/archive/refs/heads/main.zip + + - name: Install AndroidModLoader`s mod template... + run: | + unzip ./AML_src.zip + mv ./AndroidModLoader-main/mod ./mod + + - name: Install Android NDK (r25c)... + uses: nttld/setup-ndk@v1.2.0 + with: + ndk-version: r25c + local-cache: true + + - name: Build the code... + run: ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk NDK_APPLICATION_MK=./Application.mk NDK_DEBUG=0 -j12 + + - name: Build 64-bit the code... + run: ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk NDK_APPLICATION_MK=./Application64.mk NDK_DEBUG=0 -j12 + + - name: Upload the mod! + uses: actions/upload-artifact@v4 + with: + name: ASILoader.zip + path: ./libs diff --git a/examples/RainbowHUD/main.c b/examples/RainbowHUD/main.c index 01c9904..69c3e56 100644 --- a/examples/RainbowHUD/main.c +++ b/examples/RainbowHUD/main.c @@ -5,7 +5,7 @@ #include #include - + #define LOG_TAG "GTA RainbowHUD" #define ALOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__)