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) | |
| Core info file in libretro-core-info (where RetroArch reads it from) | 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) |
|
| Project on git.libretro.com | |
| Core on the buildbot | .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 |
|
| Page in the libretro docs | |
| Lakka |
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.ymlandrust-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.ymlwith 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_scriptand artifacts of the templates, and overridescriptto build--manifest-path frontends/libretro/Cargo.toml(or-p boytacean-libretro), copyinglibboytacean_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
SDKROOTin its ownbefore_script, because itsbindgenneeds 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
msvc2010runner 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 infrontends/libretro/res/boytacean_libretro.infoand in libretro-core-info.- Bump
display_versionin libretro-core-info from0.10.13to the current version, and keep it in sync on every release. frontends/libretro/Cargo.toml(as the other front-ends) still saysrust-version = "1.82", while the workspace needs 1.86. Harmless, as theboytaceandependency 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
gbandgbcin ES-DE'ses_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
- Tentative support for CI Pipelines
- Support for the info file in the official Retroarch repo (https://github.com/libretro/libretro-super/pull/1856)
- Root
.gitlab-ci.ymlthat runs our pipeline on our GitLab and the libretro jobs on git.libretro.com (joamag/boytacean#63) - libretro jobs on the Rust templates, building
boytacean-libretro(not the root crate) for every target (joamag/boytacean#63) - Commit
Cargo.lock, without--lockedso that a version bump never breaks the buildbot (joamag/boytacean#63) - Fix the info file (
license,display_version, and the Game Boy Advance of 0.15.0) here (joamag/boytacean#63) and in libretro-core-info, through libretro-super, whosedist/infoit mirrors (libretro/libretro-super#2213) - Ask libretro staff for the git.libretro.com project and its pipeline (libretro/libretro-super#2214)
- Inclusion of Boytacean in the official pipeline (the core on the buildbot for every target)
- Move Lakka's package to the rewritten commit, or to
0.14.0(libretro/Lakka-LibreELEC#2262) - Move Lakka's package to
0.15.0(libretro/Lakka-LibreELEC#2263) - Keep the in-game saves of the core, which RetroArch could not keep (joamag/boytacean#68)
- Game Boy Advance in the libretro core, released in 0.15.0 (joamag/boytacean#64)
- Optional: libretro-super fetch rule (libretro/libretro-super#2215), libretro docs page (libretro/docs#1244), App Store builds, ES-DE
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
References
- https://forums.libretro.com/t/how-to-put-a-new-core-in-libretro-super-repo/15684/10 - Libretro forum thread on this topic
- https://github.com/libretro/libretro-super/blob/b59e0317376d14f50d1975c38f37498412f84847/rules.d/core-rules.sh#L1511 - Listing reference
- https://github.com/kurtjd/jaxe/blob/main/.gitlab-ci.yml - Example .gitlab-ci.yml
- https://git.libretro.com/libretro/jaxe - Listed JAXE (CHIP-8) Core
- https://git.libretro.com/libretro-infrastructure/ci-templates - Templates
- https://docs.libretro.com/development/cores/developing-cores/#add-your-core-to-libretro-infrastructure
- https://git.libretro.com/libretro/rust-dos/-/blob/main/.gitlab-ci.yml - Rust core with the same layout as ours (core in a subdirectory), the model for our configuration
- https://git.libretro.com/libretro/holani-retro/-/blob/main/.gitlab-ci.yml - First Rust core on the buildbot, all the Rust templates
- https://git.libretro.com/libretro-infrastructure/libretro-build-rust - Image of the Rust templates
- https://buildbot.libretro.com/nightly/linux/x86_64/latest/.index-extended - Buildbot index, where the core should show up
- https://github.com/libretro/libretro-core-info/blob/master/boytacean_libretro.info - Info file used by RetroArch
- https://github.com/libretro/Lakka-LibreELEC/blob/master/packages/lakka/libretro_cores/boytacean/package.mk - Lakka package
Not as relevant
- https://github.com/libretro/libretro-super/blob/master/recipes/recipes.info - Receipts for the info
