Skip to content

Commit 5e27b1d

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

Some content is hidden

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

76 files changed

+32608
-61
lines changed

.github/workflows/build.yaml

Lines changed: 36 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,65 @@
1-
name: Build Android APK
2-
1+
name: Build APK
32
on:
43
push:
54
branches: [dev]
65
pull_request:
76
branches: [dev]
8-
workflow_dispatch:
97

108
jobs:
119
build:
1210
runs-on: ubuntu-latest
1311

14-
env:
15-
SDK_VERSION: 34
16-
NDK_VERSION: 27.0.11718014
17-
MIN_SDK: 29
18-
1912
steps:
13+
# Check out the repository code with submodules
2014
- name: Checkout code
2115
uses: actions/checkout@v4
2216
with:
2317
submodules: recursive
2418

25-
- name: Setup Java
26-
uses: actions/setup-java@v3
19+
# Set up JDK 17
20+
- name: Set up JDK
21+
uses: actions/setup-java@v4
2722
with:
28-
distribution: "temurin"
2923
java-version: "17"
24+
distribution: "temurin"
3025

31-
- name: Setup Android SDK
26+
# Set up Android SDK and NDK
27+
- name: Set up Android SDK
3228
uses: android-actions/setup-android@v3
29+
with:
30+
sdk-version: "34"
31+
ndk-version: "27.2.12479018" # NDK r27c
32+
cmdline-tools-version: "13.0"
33+
34+
# Verify NDK version
35+
- name: Verify NDK version
36+
run: cat $ANDROID_NDK_HOME/source.properties
3337

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

42-
- name: Build Debug APK
53+
# Build the APK
54+
- name: Build debug APK
4355
run: ./gradlew assembleDebug
56+
env:
57+
ANDROID_SDK_ROOT: ${{ env.ANDROID_HOME }}
58+
ANDROID_NDK_HOME: ${{ env.ANDROID_NDK_HOME }}
4459

45-
- name: Upload APK artifact
60+
# Upload the APK as an artifact
61+
- name: Upload APK
4662
uses: actions/upload-artifact@v4
4763
with:
48-
name: testgame-apk
64+
name: raymob-debug-apk
4965
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)