Fetches the latest ps2build release and installs it into an existing PS2DEV toolchain root
- TypeScript 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Previously every "ps2build update <component>" ran unconditionally on every CI invocation, even when nothing changed - real network fetches + reinstalls for every named component, every run. Now (when explicit components: are given): restores a best-effort cache of the whole PS2DEV root (keyed by platform/arch/component list, always falling back to the most recent prior save via a prefix restoreKey - there's no stable content hash to key on up front since "latest" changes over time), then runs "ps2build update <component> --check" per component and only performs a real update for whatever that check reports as stale or missing. A component already current is skipped entirely - no network fetch, no reinstall. Saves a fresh cache afterward under an always-unique (run-id-suffixed) key. Gracefully degrades to today's unconditional-fetch behavior when the runner's cache backend isn't available, or when the bare (no-components) update path is used - neither of those changes. Co-Authored-By: Claude Sonnet 5 <[email protected]> |
||
| dist | ||
| src | ||
| .gitignore | ||
| action.yml | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
setup-sdk
One-shot bootstrap: takes a blank machine or container to "ready to
compile a PS2 game." Downloads
ps2build directly, then
runs ps2build update - which bootstraps the compiler toolchain,
ninja, srxfixup, and the sdk-core/sdk-world package tiers
itself, each fetched from its own independent, always-current release.
If you're developing the SDK itself (building sdk-core/sdk-world
from source), use
setup-toolchain +
setup-ps2build
directly instead - you don't want a prebuilt copy of the SDK sitting
around while you build your own.
Forgejo/GitHub Action
- uses: https://git.techwritescode.dev/ps2/setup-sdk@master
with:
ps2dev: /opt/ps2dev
version: latest # optional - pins ps2build's own initial version only
force: 'false' # optional