Skip to content

Commit f31483a

Browse files
committed
fix Raylib example and add to CI
1 parent 4758c1a commit f31483a

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ jobs:
5858
zig build -Dandroid=true --verbose
5959
zig build -Dandroid=true -Dcrash-on-exception --verbose
6060
working-directory: examples/sdl2
61+
62+
- name: Build Raylib Example (Zig Stable)
63+
run: zig build -Dandroid=true --verbose
64+
working-directory: examples/raylib
6165

6266
# TODO(jae): 2025-03-30
6367
# Need to figure out how to get 'adb shell monkey' to return an error code or be able to return an error code
@@ -111,6 +115,10 @@ jobs:
111115
run: zig build -Dandroid=true --verbose
112116
working-directory: examples/sdl2
113117

118+
- name: Build Raylib Example (Zig Stable)
119+
run: zig build -Dandroid=true --verbose
120+
working-directory: examples/raylib
121+
114122
#
115123
# Nightly Zig Builds
116124
#
@@ -127,3 +135,7 @@ jobs:
127135
- name: Build SDL2 Example (Zig Nightly)
128136
run: zig build -Dandroid=true --verbose
129137
working-directory: examples/sdl2
138+
139+
- name: Build Raylib Example (Zig Stable)
140+
run: zig build -Dandroid=true --verbose
141+
working-directory: examples/raylib

examples/raylib/build.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub fn build(b: *std.Build) void {
5757
b.dependency("raylib_zig", .{
5858
.target = target,
5959
.optimize = optimize,
60-
.shared = true,
60+
.linkage = std.builtin.LinkMode.dynamic,
6161
});
6262

6363
const raylib_artifact = raylib_dep.artifact("raylib");
@@ -78,7 +78,7 @@ pub fn build(b: *std.Build) void {
7878
lib.root_module.addIncludePath(native_app_glue_dir);
7979
apk.addArtifact(lib);
8080
} else {
81-
const exe = b.addExecutable(.{ .name = exe_name, .optimize = optimize, .root_module = lib_mod });
81+
const exe = b.addExecutable(.{ .name = exe_name, .root_module = lib_mod });
8282
b.installArtifact(exe);
8383

8484
const run_exe = b.addRunArtifact(exe);

examples/raylib/build.zig.zon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
.dependencies = .{
77
.android = .{ .path = "../.." },
88
.raylib_zig = .{
9-
.url = "git+https://github.com/not-nik/raylib-zig#5013830647196ba938a3a25a36b8245606e9a9cd",
10-
.hash = "raylib_zig-5.6.0-dev-KE8REM0tBQAHVn9Xjqlgu9l1qgfTmP8aJa1kLhD584bV",
9+
.url = "git+https://github.com/raylib-zig/raylib-zig#d64fc43f38949231dc7d6f1c016db8fcae858b8c",
10+
.hash = "raylib_zig-5.6.0-dev-KE8REDc2BQCri1t11guC1tZA-Luc7NuVeml_59LSELLe",
1111
},
1212
},
1313
.paths = .{

0 commit comments

Comments
 (0)