cmake build -DBUILD_TESTING=ON && cmake --build build
./build/scarletnx -r "$work/Game" Game --jobs 8
ctest --test-dir build --output-on-failure
python3 tests/run_filesystem_tree.py --cc clang --sanitize
clang -std=gnu23 -fsyntax-only -Wall -I src src/common/cpu/aarch64/cpu_helpers.c
cmake --build build --target cppcheck
Runtime relink deploys to the data folder's recompiled/ by default (SNX_RECOMPILED_DIR). Recompiler/src/common/cpu/aarch64/ edits require -r.
Avoid builds during timing runs. Formatting isn't checked: git clang-format (clang-format 23) on the changed lines.
The cppcheck target runs cppcheck over every file of src/ and tests/ the tree compiles, after a build, and shows
every finding: cmake/cppcheck.cfg says what our headers cannot (snx_alloc never returns NULL). A finding fails the
target unless its check is in cmake/cppcheck-not-zero.txt, the checks that still have findings; a check brought to
zero leaves that list, and fails the target from then on.
FS tests use production tree/HLE + synthetic temp data; --only tree|service selects a suite.
CI (.github/workflows/build.yml) has one job for each platform and architecture, which builds its package, then
tests it with the same tree and compiler cache and runs it as installed: each Linux AppImage (x86-64 and AArch64) with
the ABI helpers' syntax, native tool and FS regressions, headless Vulkan on lavapipe and the optional Python
diagnostics, x86-64's with Amberlith's probes on lavapipe against the cases that passed before
(scripts/amberlith.py); the cross-built AppImages through qemu; the Windows zips (x86-64 and AArch64), the Android
APK and the macOS and iOS apps. x86-64 under ASan and UBSan and the other machines' back ends under Unicorn have a job
each. A pull request, a run by hand and a version's tag run every test (SNX_TESTS); a push to main and the
nightly's schedule build every package, run the x86-64 and AArch64 AppImages and the Windows zips as a user would, the
schedule publishing them, and test nothing else, so a merge that breaks a test shows on the next pull request's run. A push to
main cancels the build of the one before it still running, as a push to a pull request does that pull request's.
The steps' commands are in scripts/ci/, a file for each job and a function for each step (scripts/ci/cross.sh
build), held to the workflow by tests/ci_scripts_test.py.
.github/workflows/publish.yml publishes what builds everywhere, each said on Discord (scripts/publish-builds.py): a
version tag pushed (v1.0.0; v1.0.0-rc1 a prerelease) as this repository's release of it, the latest, its notes
listing the changes since the version before; the first scheduled run of main of each day (UTC) that builds
everywhere, or a run of it by hand, as that day's nightly in
scarletnx/nightly, nightly-<day>-<commit>, where every nightly stays
(the nightly repository's README is scripts/nightly-notes.py's, written at each nightly); a day whose runs failed says
so, with the run, at the top of the newest nightly until the next one; each push to main as this repository's one
prerelease of main, main-<commit>, a tag that never moves: each packaging job of build.yml starts publish.yml by
hand with its run once its package is uploaded, so the package joins at once, and the run's end does it once more; the
first package of a newer build replaces the prerelease and its tag, a build that ends with no package leaves none, and
an older one changes nothing (publish.yml's concurrency runs one at a time); each pull request as a prerelease there,
pr-<number>, deleted when it closes without a merge, or, merged, by the first nightly that has its change, which also
deletes any a close's run left behind. The notes and the messages link each download with its size and list what
changed: a line for each pull request the commits came in by, grouped by the [area] of its title, with its commits
counted, and one for each commit no pull request merged (a pull request's own builds list its commits). A fork's pull
request is published once someone of the team labels it publish builds, after each push. The Discord cards of each
pull request, each issue and each nightly are ReiWimsy's, the bot of
scarletnx/wimsy-core, which asks GitHub what changed every 30 s: no job of
this repository draws them. The secrets: NIGHTLY_TOKEN (writes that repository's contents) and
DISCORD_WEBHOOK_RELEASES (a version's message).
Verify affected scenes manually, repeat intermittent failures, record evidence/scope.
Test guest semantics + malformed IPC with synthetic cases.
Made from docs/dev/development.md at 69237645142c. GPL-3.0-or-later.