Skip to content

Commit e288f70

Browse files
committed
Add missing libs, fix build
1 parent 07ea76b commit e288f70

76 files changed

Lines changed: 32611 additions & 61 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yaml

Lines changed: 39 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,68 @@
1-
name: Build Android APK
2-
1+
name: Build APK
32
on:
43
push:
5-
branches: [dev]
4+
branches:
5+
- dev
66
pull_request:
7-
branches: [dev]
7+
branches:
8+
- dev
89
workflow_dispatch:
910

1011
jobs:
1112
build:
1213
runs-on: ubuntu-latest
1314

14-
env:
15-
SDK_VERSION: 34
16-
NDK_VERSION: 27.0.11718014
17-
MIN_SDK: 29
18-
1915
steps:
16+
# Check out the repository code with submodules
2017
- name: Checkout code
2118
uses: actions/checkout@v4
2219
with:
2320
submodules: recursive
2421

25-
- name: Setup Java
26-
uses: actions/setup-java@v3
22+
# Set up JDK 17
23+
- name: Set up JDK
24+
uses: actions/setup-java@v4
2725
with:
28-
distribution: "temurin"
2926
java-version: "17"
27+
distribution: "temurin"
3028

29+
# Set up Android SDK and NDK
3130
- name: Setup Android SDK
3231
uses: android-actions/setup-android@v3
32+
with:
33+
cmdline-tools-version: "11076708" # Latest known working version
34+
packages: "platforms;android-34 build-tools;34.0.0 ndk;27.2.12479018"
35+
accept-android-sdk-licenses: true
36+
37+
# Verify NDK version
38+
- name: Verify NDK version
39+
run: cat $ANDROID_NDK_HOME/source.properties
3340

34-
- name: Install NDK
35-
run: |
36-
sdkmanager "ndk;$NDK_VERSION"
37-
sdkmanager "cmake;3.22.1"
41+
# Cache Gradle dependencies
42+
- name: Cache Gradle packages
43+
uses: actions/cache@v4
44+
with:
45+
path: |
46+
~/.gradle/caches
47+
~/.gradle/wrapper
48+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
49+
restore-keys: |
50+
${{ runner.os }}-gradle-
3851
39-
- name: Grant execute permission to Gradle wrapper
52+
# Grant execute permission for gradlew
53+
- name: Make gradlew executable
4054
run: chmod +x ./gradlew
4155

42-
- name: Build Debug APK
56+
# Build the APK
57+
- name: Build debug APK
4358
run: ./gradlew assembleDebug
59+
env:
60+
ANDROID_SDK_ROOT: ${{ env.ANDROID_HOME }}
61+
ANDROID_NDK_HOME: ${{ env.ANDROID_NDK_HOME }}
4462

45-
- name: Upload APK artifact
63+
# Upload the APK as an artifact
64+
- name: Upload APK
4665
uses: actions/upload-artifact@v4
4766
with:
48-
name: testgame-apk
67+
name: raymob-debug-apk
4968
path: app/build/outputs/apk/debug/app-debug.apk

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
[submodule "libs/raymob"]
88
path = libs/raymob
99
url = https://github.com/Bigfoot71/raymob.git
10+
[submodule "libs/raylib"]
11+
path = libs/raylib
12+
url = https://github.com/raysan5/raylib.git

0 commit comments

Comments
 (0)