Libretro repository listing

Description

Get Boytacean's libretro core built by the libretro infrastructure and published on the libretro buildbot, so that RetroArch users can install it from Online Updater > Core Downloader on every platform, without building it themselves or downloading it from the GitHub releases.

Status (2026-11-23)

Step Status
Core info file in libretro-super (libretro/libretro-super#1856) ✅ Merged 2024-10-20
Core info file in libretro-core-info (where RetroArch reads it from) ⚠️ Present, but stale: display_version = "0.10.13", license = "Apache-2." and Game Boy / Color only, updated to 0.15.0 (with the Game Boy Advance and its optional BIOS) in libretro/libretro-super#2213
Libretro CI configuration (.gitlab/libretro.yml) ✅ Rewritten on the Rust templates for 14 targets, merged in joamag/boytacean#63
Project on git.libretro.com 🔄 Requested in libretro/libretro-super#2214
Core on the buildbot ❌ Not available on any platform (checked the .index-extended of Linux x86_64/aarch64/armhf, Windows x86_64/x86, macOS x86_64/arm64, iOS and Android)
Fetch rule in libretro-super rules.d/core-rules.sh 🔄 Opened in libretro/libretro-super#2215
Page in the libretro docs 🔄 Opened in libretro/docs#1244, updated for the Game Boy Advance of 0.15.0
Lakka ✅ Shipped since 2026-03-24, but pinned to a commit rewritten on 2026-11-21 (see below), moved to 0.14.0 in libretro/Lakka-LibreELEC#2262 (merged 2026-11-21), and to 0.15.0 in libretro/Lakka-LibreELEC#2263

What users can do today: install the core by hand from the GitHub releases (boytacean_libretro.so, .dll and .dylib, with boytacean_libretro.info), or use Lakka.

What changed since 2023

The answer on Discord in 2023 was that there was no Rust core in the libretro CI/CD. That is no longer the case:

  • On 2024-11-08 M4xw added Rust templates to libretro-infrastructure/ci-templates: rust-linux-x64.yml, rust-linux-i686.yml, rust-linux-aarch64.yml, rust-windows-x64.yml, rust-windows-i686.yml, rust-apple.yml (macOS, iOS and tvOS), rust-android-jni.yml and rust-webos.yml. They run on the libretro-build-rust image (stable Rust from rustup, Android NDK r29 with cargo-ndk 4.1.2, osxcross), which covers our MSRV of 1.86.
  • Four Rust cores are now built every night: Holani (project created 2024-11-08, the same day as the templates), doukutsu-rs (2024-12-08), RustyNES (2026-09-22) and rust-dos (2026-10-01).
  • Holani's path is the one to follow: info file in libretro-super (2024-10-03), .gitlab-ci.yml with the Rust templates in the upstream repository, libretro staff create the mirror on git.libretro.com and enable its pipeline (2024-11-08), then a docs page (2024-11-11), the Apple App Store builds (2024-11-19) and Lakka (2024-12-23).

Plan

1. A root .gitlab-ci.yml that works on both GitLab instances

libretro mirrors the GitHub repository and runs its root .gitlab-ci.yml (the docs ask for it there). Ours is the pipeline of our GitLab: a global before_script that installs Rust and Node.js, and deploy jobs for Netlify, Cloudflare, crates.io, npm and PyPI, none of which can run on git.libretro.com.

Proposal: move our pipeline to .gitlab/main.yml and make the root file include either it or .gitlab/libretro.yml, with include: rules: if: $CI_SERVER_HOST. The alternative, asking libretro to set the project's CI configuration path to .gitlab/libretro.yml, depends on a setting on their side and is not what the docs describe.

2. Rewrite .gitlab/libretro.yml with the Rust templates

The templates run cargo build --release --target ${TARGET_ARCH} at the root of the repository, and then rename lib${CORENAME}.so (${CORENAME}.dll, lib${CORENAME}.dylib) to ${CORENAME}_libretro.*. Our root crate is the emulator library (crate-type = ["cdylib", "rlib"]), so with CORENAME: boytacean the templates as they are would publish libboytacean.so, the emulator library, as boytacean_libretro.so: the pipeline passes, and RetroArch can not load the core.

Checked locally with Rust 1.98: the build of the templates (at the root) gives libboytacean.so with 0 retro_* symbols, while cargo build --release --target x86_64-unknown-linux-gnu -p boytacean-libretro gives libboytacean_libretro.so with all 25 of them.

rust-dos has the same layout (the core is a crate in a subdirectory), and its .gitlab-ci.yml is the model to follow:

  • Keep the image, before_script, after_script and artifacts of the templates, and override script to build --manifest-path frontends/libretro/Cargo.toml (or -p boytacean-libretro), copying libboytacean_libretro.* to the name the templates expect.
  • Android: cd frontends/libretro && cargo ndk -t $ANDROID_ABI -o ../../target build --release, then the same copy.
  • Windows x86_64: the image's MinGW-w64 predates GetHostNameW, which recent Rust standard libraries import, and rust-dos adds an import library for it. Windows i686 links with llvm-mingw.
  • macOS: Holani exports SDKROOT in its own before_script, because its bindgen needs the SDK headers. We declare the libretro API by hand, so we probably do not need it, to be confirmed by the first pipeline.
  • Remove the current Windows job, which needs the msvc2010 runner tag and a Rust toolchain on it; the Rust templates cross-compile Windows with MinGW.
  • Targets: Linux x86_64, i686 and aarch64, Windows x86_64 and i686, macOS x86_64 and arm64, iOS arm64, tvOS arm64 (nightly with -Zbuild-std), Android armeabi-v7a, arm64-v8a, x86 and x86_64, and webOS.

3. Reproducible builds

Cargo.lock is not committed, so the buildbot would resolve the dependencies again on every build and could not use --locked (rust-dos does). Commit it.

4. Info file

  • license = "Apache-2." should be "Apache-2.0", both in frontends/libretro/res/boytacean_libretro.info and in libretro-core-info.
  • Bump display_version in libretro-core-info from 0.10.13 to the current version, and keep it in sync on every release.
  • frontends/libretro/Cargo.toml (as the other front-ends) still says rust-version = "1.82", while the workspace needs 1.86. Harmless, as the boytacean dependency requires 1.86, and left as is.

5. Ask libretro to enable the pipeline

Once the configuration builds every target, ask on the Discord thread below (M4xw created the projects of the Rust cores) for a libretro/boytacean project on git.libretro.com, mirroring master of joamag/boytacean, with its pipeline enabled. Requested in libretro/libretro-super#2214, the route of the recent cores (piece-emu was enabled by gouchi the day after its request, in libretro/libretro-super#2187).

6. Lakka

Lakka's package (added by ToKe79, bumped by ShigeakiAsai) pins PKG_VERSION="d1ed72404feff6021449f9f8942bea221142dc7a" (2026-07-28). That commit was rewritten on 2026-11-21 and is now 7fa6e1cca2cabd970bafa0fd889aa9d676149557, with the same tree. GitHub still serves the old commit, but no branch or tag contains it anymore, so it can be garbage collected and is not in a fresh clone. Open a pull request to Lakka-LibreELEC that moves the package to 7fa6e1c, or to the 0.14.0 tag (80bd3d5a8bebbcd791a300aa08a47cbee53205b4).

7. Optional follow-ups

  • A fetch rule in libretro-super rules.d/core-rules.sh, as Holani's (include_core_holani), opened in libretro/libretro-super#2215.
  • A page in libretro/docs (docs/library/boytacean.md), as Holani's, opened in libretro/docs#1244.
  • Inclusion in the RetroArch Apple App Store builds, as done for Holani in libretro/RetroArch#17190.
  • An alternative emulator entry for gb and gbc in ES-DE's es_systems.xml, once the core is on the buildbot (none of its systems lists Boytacean today).
  • Game Boy Advance in the libretro core: done in joamag/boytacean#64, released in 0.15.0, with its saves and the optional gba_bios.bin (save states and cheats remain Game Boy only).

Todos

Discord communication

https://discord.com/channels/184109094070779904/876520593636335646/1297513286551605348 - This is the current chat with the most up-to-date communication.

https://discord.com/channels/184109094070779904/876520593636335646/1140716087391031316

image

References

Not as relevant

Edited by João Magalhães