Merge main (c298da6f) into feat/bionic-runtime

One conflict: .github/workflows/build.yml. This branch had a step that
fetched Robolectric's Android jars from a DroidDeck-CI release because
Maven Central answered the runners with HTTP 429; main now caches those
jars (#3127, #3134), so build.yml is main's again and this pull request
no longer changes it.

ProtonMenu, ProtonExtras, SessionService, SessionOverlay and
droiddeck-game-env merged cleanly; test_game_environment.py and
test_proton_extra.py pass (207 tests).
This commit is contained in:
The412Banner committed 2026-11-24 21:38:54 +00:00
commit cc5de0ba63
308 files changed
+14468 -3934

No files matched your search

+73 -12
View File
@@ -164,6 +164,9 @@ jobs:
!/docs/releases/media/
sparse-checkout-cone-mode: false
persist-credentials: false
- name: Clear scratch earlier runs left behind
if: runner.environment == 'self-hosted'
run: bash tools/ci/clear-runner-scratch.sh "$GITHUB_WORKSPACE"
- name: Merge the pinned APK base
if: github.event_name == 'pull_request'
env:
@@ -367,6 +370,10 @@ jobs:
persist-credentials: false
submodules: recursive
- name: Clear scratch earlier runs left behind
if: runner.environment == 'self-hosted'
run: bash tools/ci/clear-runner-scratch.sh "$GITHUB_WORKSPACE"
- name: Check human authorship
env:
EVENT_NAME: ${{ github.event_name }}
@@ -565,23 +572,65 @@ jobs:
SOURCE_TREE: ${{ needs.source.outputs.tree-sha }}
run: python3 tools/components/prepare.py unpack --tree "$SOURCE_TREE"
# A hosted runner needs over 20 minutes per launcher; rebuild only when its sources change, and save each
# build as soon as it finishes so a later timeout cannot discard it.
- name: Restore the Ubisoft launcher build
id: ubisoft-cache
uses: actions/cache/restore@v4
with:
path: app/src/main/assets/linuxfs/usr/local/lib/droiddeck-ubisoft
key: ubisoft-launcher-v1-${{ steps.rust.outputs.rustc }}-${{ hashFiles('tools/ubisoft-launcher/src/**', 'tools/ubisoft-launcher/Cargo.toml', 'tools/ubisoft-launcher/Cargo.lock', 'tools/ubisoft-launcher/build.sh', 'tools/ubisoft-launcher/build.rs', 'tools/ubisoft-launcher/.cargo/**') }}
- name: Ubisoft launcher service (x86_64-pc-windows-gnu)
if: steps.ubisoft-cache.outputs.cache-hit != 'true'
run: |
set -euo pipefail
command -v x86_64-w64-mingw32-gcc >/dev/null || { sudo apt-get update -qq && sudo apt-get install -y -qq gcc-mingw-w64-x86-64; }
bash tools/ubisoft-launcher/build.sh
- name: Save the Ubisoft launcher build
if: steps.ubisoft-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: app/src/main/assets/linuxfs/usr/local/lib/droiddeck-ubisoft
key: ${{ steps.ubisoft-cache.outputs.cache-primary-key }}
- name: Restore the Rockstar launcher build
id: rockstar-cache
uses: actions/cache/restore@v4
with:
path: app/src/main/assets/linuxfs/usr/local/lib/droiddeck-rockstar
key: rockstar-launcher-v1-${{ steps.rust.outputs.rustc }}-${{ hashFiles('tools/rockstar-launcher/src/**', 'tools/rockstar-launcher/Cargo.toml', 'tools/rockstar-launcher/Cargo.lock', 'tools/rockstar-launcher/build.sh', 'tools/rockstar-launcher/build.rs', 'tools/rockstar-launcher/.cargo/**') }}
- name: Rockstar launcher service (32-bit and 64-bit)
if: steps.rockstar-cache.outputs.cache-hit != 'true'
run: |
set -euo pipefail
command -v i686-w64-mingw32-gcc >/dev/null || { sudo apt-get update -qq && sudo apt-get install -y -qq gcc-mingw-w64-i686; }
command -v x86_64-w64-mingw32-gcc >/dev/null || { sudo apt-get update -qq && sudo apt-get install -y -qq gcc-mingw-w64-x86-64; }
bash tools/rockstar-launcher/build.sh
- name: Save the Rockstar launcher build
if: steps.rockstar-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: app/src/main/assets/linuxfs/usr/local/lib/droiddeck-rockstar
key: ${{ steps.rockstar-cache.outputs.cache-primary-key }}
- name: Restore the Epic launcher build
id: epic-cache
uses: actions/cache/restore@v4
with:
path: app/src/main/assets/linuxfs/usr/local/lib/droiddeck-epic
key: epic-launcher-v1-${{ steps.rust.outputs.rustc }}-${{ hashFiles('tools/epic-launcher/src/**', 'tools/epic-launcher/Cargo.toml', 'tools/epic-launcher/Cargo.lock', 'tools/epic-launcher/build.sh', 'tools/epic-launcher/build.rs', 'tools/epic-launcher/.cargo/**') }}
- name: Epic Games Launcher parent stand-in (x86_64-pc-windows-gnu)
if: steps.epic-cache.outputs.cache-hit != 'true'
run: |
set -euo pipefail
command -v x86_64-w64-mingw32-gcc >/dev/null || { sudo apt-get update -qq && sudo apt-get install -y -qq gcc-mingw-w64-x86-64; }
bash tools/epic-launcher/build.sh
- name: Save the Epic launcher build
if: steps.epic-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: app/src/main/assets/linuxfs/usr/local/lib/droiddeck-epic
key: ${{ steps.epic-cache.outputs.cache-primary-key }}
- uses: actions/download-artifact@v4
with:
@@ -685,20 +734,32 @@ jobs:
if-no-files-found: ignore
overwrite: true
# Robolectric's Android jars (about 770 MB) from a DroidDeck-CI release instead of Maven Central, which
# answers the shared runners with HTTP 429. Robolectric makes no request for a jar already in ~/.m2.
# A new release is needed only when the Robolectric version changes.
- name: Robolectric Android jars
- name: Resolve the Robolectric version
id: robolectric
run: |
echo "version=$(grep -o "org.robolectric:robolectric:[0-9.]*" app/build.gradle | cut -d: -f3)" >> "$GITHUB_OUTPUT"
# Robolectric downloads these from Maven Central on first use without retrying, and 429s fail whole test classes.
# The cache path sits beside the workspace because runner homes are at different depths from it, and
# actions/cache stores paths relative to the workspace. Runners that keep their own ~/.m2 skip the cache.
- name: Place Robolectric's Android jars beside the workspace
id: robolectric-jars
run: |
set -euo pipefail
base=https://github.com/Droid-Deck/DroidDeck-CI/releases/download/robolectric-4.16.1
dir=$HOME/.m2/repository/org/robolectric/android-all-instrumented
tmp=$(mktemp -d)
curl -fsSL --retry 3 -o "$tmp/SHA256SUMS" "$base/SHA256SUMS"
while read -r _ f; do curl -fsSL --retry 3 -o "$tmp/$f" "$base/$f"; done < "$tmp/SHA256SUMS"
(cd "$tmp" && sha256sum -c --quiet SHA256SUMS)
for f in "$tmp"/*.jar; do v=$(basename "$f" .jar); v=${v#android-all-instrumented-}; mkdir -p "$dir/$v"; mv "$f" "$dir/$v/"; done
jars="$GITHUB_WORKSPACE/../robolectric-jars"
m2="$HOME/.m2/repository/org/robolectric/android-all-instrumented"
if [ -d "$m2" ] && [ ! -L "$m2" ]; then
echo "cache=false" >> "$GITHUB_OUTPUT"
else
mkdir -p "$jars" "$(dirname "$m2")"
ln -sfn "$(cd "$jars" && pwd)" "$m2"
echo "cache=true" >> "$GITHUB_OUTPUT"
fi
- name: Cache Robolectric's Android jars
if: steps.robolectric-jars.outputs.cache == 'true'
uses: actions/cache@v4
with:
path: ../robolectric-jars
key: robolectric-android-all-v2-${{ steps.robolectric.outputs.version }}
- name: Unit tests
id: unit-tests
env: