mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 05:46:03 +00:00
Need for Speed Hot Pursuit Remastered stopped when a game thread's
destructors ran: the FEX engine's pre-flight check read /proc/self/maps
and required every page of the thread's writable range to be host-
writable, but the game keeps a PROT_NONE guard hole inside it
("host_permissions=---p", "pthread thread dtors failed at stage 1: 13").
Skip such holes; read-only or W+X pages still fail the check.
The build now compiles through ccache and keeps apt's downloads, both in
the workspace and carried between runs with actions/cache, so a rebuild
with the same pin recompiles only what a patch touched.
62 lines
2.4 KiB
YAML
62 lines
2.4 KiB
YAML
name: Build shadPS4 (ARM64)
|
|
|
|
# The PS4 emulator package: the ARM64 shadPS4 core (FEXCore runs the PS4's x86-64 code) from
|
|
# tools/shadps4/source.env, with tools/shadps4/patches so it runs stand-alone in the runtime (SDL
|
|
# controllers, PulseAudio), packed as shadps4.AppImage. Published as a release asset the hosted
|
|
# package catalog points at; the apk does not carry it.
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'tools/shadps4/**'
|
|
- '.github/workflows/build-shadps4.yml'
|
|
workflow_dispatch:
|
|
inputs:
|
|
tag:
|
|
description: 'Release tag to publish as (e.g. shadps4-be6bc2e-p1); empty = artifact only'
|
|
required: false
|
|
default: ''
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 150
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
# Compiler and package caches carried between runs; a run with the same pin and patches
|
|
# recompiles only what changed.
|
|
- uses: actions/cache@v4
|
|
with:
|
|
path: .ccache
|
|
key: shadps4-ccache-${{ hashFiles('tools/shadps4/source.env') }}-${{ github.run_id }}
|
|
restore-keys: |
|
|
shadps4-ccache-${{ hashFiles('tools/shadps4/source.env') }}-
|
|
shadps4-ccache-
|
|
- uses: actions/cache@v4
|
|
with:
|
|
path: .apt-cache
|
|
key: shadps4-apt-${{ hashFiles('tools/shadps4/build-in-debian.sh') }}
|
|
restore-keys: shadps4-apt-
|
|
- name: Build in Debian trixie
|
|
run: |
|
|
set -euo pipefail
|
|
df -h /
|
|
docker run --rm -v "$PWD:/work" -w /work debian:trixie bash tools/shadps4/build-in-debian.sh
|
|
sudo chown -R "$(id -u):$(id -g)" .
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: shadps4-appimage
|
|
path: |
|
|
shadps4.AppImage
|
|
shadps4.AppImage.sha256
|
|
- name: Publish
|
|
if: github.event_name == 'workflow_dispatch' && inputs.tag != ''
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
run: |
|
|
set -euo pipefail
|
|
. tools/shadps4/source.env
|
|
gh release create "${{ inputs.tag }}" --title "${{ inputs.tag }}" --notes "shadPS4 ARM64 (FEXCore guest CPU) from ${SHADPS4_REPO} @ ${SHADPS4_REV} with tools/shadps4/patches; installed by the app to /opt/appimages/shadps4.AppImage. sha256 $(cut -d' ' -f1 shadps4.AppImage.sha256)" shadps4.AppImage shadps4.AppImage.sha256 || gh release upload "${{ inputs.tag }}" shadps4.AppImage shadps4.AppImage.sha256 --clobber
|