Skip to content

Commit 9f54576

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

Some content is hidden

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

75 files changed

+32635
-84
lines changed

.github/workflows/build.yaml

Lines changed: 63 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,69 @@
1-
name: Build Android APK
1+
name: Build APK
22

33
on:
44
push:
5-
branches: [dev]
5+
branches:
6+
- dev
67
pull_request:
7-
branches: [dev]
8+
branches:
9+
- dev
810
workflow_dispatch:
911

10-
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
14-
env:
15-
SDK_VERSION: 34
16-
NDK_VERSION: 27.0.11718014
17-
MIN_SDK: 29
18-
19-
steps:
20-
- name: Checkout code
21-
uses: actions/checkout@v4
22-
with:
23-
submodules: recursive
24-
25-
- name: Setup Java
26-
uses: actions/setup-java@v3
27-
with:
28-
distribution: "temurin"
29-
java-version: "17"
30-
31-
- name: Setup Android SDK
32-
uses: android-actions/setup-android@v3
33-
34-
- name: Install NDK
35-
run: |
36-
sdkmanager "ndk;$NDK_VERSION"
37-
sdkmanager "cmake;3.22.1"
38-
39-
- name: Grant execute permission to Gradle wrapper
40-
run: chmod +x ./gradlew
41-
42-
- name: Build Debug APK
43-
run: ./gradlew assembleDebug
44-
45-
- name: Upload APK artifact
46-
uses: actions/upload-artifact@v4
47-
with:
48-
name: testgame-apk
49-
path: app/build/outputs/apk/debug/app-debug.apk
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
# Check out the repository code with submodules
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
with:
21+
submodules: recursive
22+
23+
# Set up JDK 17
24+
- name: Set up JDK
25+
uses: actions/setup-java@v4
26+
with:
27+
java-version: "17"
28+
distribution: "temurin"
29+
30+
# Set up Android SDK and NDK
31+
- name: Set up Android SDK
32+
uses: android-actions/setup-android@v3
33+
with:
34+
sdk-version: "34"
35+
ndk-version: "27.2.12479018" # NDK r27c
36+
cmdline-tools-version: "13.0"
37+
38+
# Verify NDK version
39+
- name: Verify NDK version
40+
run: cat $ANDROID_NDK_HOME/source.properties
41+
42+
# Cache Gradle dependencies
43+
- name: Cache Gradle packages
44+
uses: actions/cache@v4
45+
with:
46+
path: |
47+
~/.gradle/caches
48+
~/.gradle/wrapper
49+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
50+
restore-keys: |
51+
${{ runner.os }}-gradle-
52+
53+
# Grant execute permission for gradlew
54+
- name: Make gradlew executable
55+
run: chmod +x ./gradlew
56+
57+
# Build the APK
58+
- name: Build debug APK
59+
run: ./gradlew assembleDebug
60+
env:
61+
ANDROID_SDK_ROOT: ${{ env.ANDROID_HOME }}
62+
ANDROID_NDK_HOME: ${{ env.ANDROID_NDK_HOME }}
63+
64+
# Upload the APK as an artifact
65+
- name: Upload APK
66+
uses: actions/upload-artifact@v4
67+
with:
68+
name: raymob-debug-apk
69+
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)