Skip to content

Commit d5345ed

Browse files
committed
Build raylib-lua and copy generated required files instead of excluding them
1 parent a3ce084 commit d5345ed

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/build.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
with:
2020
submodules: recursive
2121

22+
- name: Install deps
23+
run: |
24+
sudo apt update
25+
sudo apt install -y build-essential libx11-dev libgl1-mesa-dev libxi-dev libxrandr-dev libxinerama-dev libxcursor-dev libasound2-dev libopenal-dev libudev-dev libpulse-dev pkg-config libxrandr-dev libglu1-mesa-dev libpulse-dev
26+
2227
- name: Set up JDK
2328
uses: actions/setup-java@v4
2429
with:
@@ -48,6 +53,14 @@ jobs:
4853
- name: Make gradlew executable
4954
run: chmod +x ./gradlew
5055

56+
- name: Generate raylib-lua binding required files
57+
run: |
58+
cd app/src/main/cpp/deps/raylib-lua/
59+
make clean
60+
make PLATFORM=PLATFORM_DESKTOP
61+
cp src/autogen/*.c ../../
62+
cd ../../../../../../
63+
5164
- name: Build debug APK
5265
run: ./gradlew assembleDebug
5366
env:

app/src/main/cpp/raylua.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
#define PHYSACDEF static
3636
// #include <physac.h>
3737

38-
// #include "bind.c"
39-
#include "autogen/boot.c"
38+
#include "bind.c"
39+
#include "boot.c"
4040

4141
extern const char *raylua_boot_str;
4242

0 commit comments

Comments
 (0)