mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-23 00:36:42 -10:00
On 26.04 qemu-user-static is a virtual package with two providers, so apt refuses it and the cross jobs fail before building. qemu-user ships the static emulators there, as qemu-aarch64, qemu-arm and qemu-ppc, the names 24.04's qemu-user uses too; the cross jobs install it and run those. libfreetype6-dev is asked for by its real name, libfreetype-dev.
118 lines
3.9 KiB
YAML
118 lines
3.9 KiB
YAML
name: CI Linux pace shadow [debug harness]
|
|
|
|
# The pace decision - which sources hold the loop each iteration - is
|
|
# one pure function, runloop_pace_decide() in runloop.h, that every
|
|
# path of runloop_iterate() defers to. It began life shadowing the
|
|
# paths' own scattered decisions with a debug assertion that the two
|
|
# agreed; this job was created to run that assertion in CI, and it
|
|
# never fired, which is what let the paths defer.
|
|
#
|
|
# What the job still does: builds with DEBUG=1 under ASan and UBSan,
|
|
# so every retro_assert in the wrapper, the ring and the runloop is
|
|
# live, and runs the threaded-video harness through it - threaded and
|
|
# unthreaded, menu open and closed, display pacing on, the runtime
|
|
# toggles - then the pacing sample, whose menu table pins the decision
|
|
# row by row. The release harness job cannot see an assertion; this
|
|
# one can.
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
# ci_paths: generated by tools/ci_paths.py, do not edit
|
|
paths:
|
|
- '**'
|
|
- '!.github/workflows/*.yml'
|
|
- '.github/workflows/Linux-pace-shadow.yml'
|
|
# ci_paths: end
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
# ci_paths: generated by tools/ci_paths.py, do not edit
|
|
paths:
|
|
- '**'
|
|
- '!.github/workflows/*.yml'
|
|
- '.github/workflows/Linux-pace-shadow.yml'
|
|
# ci_paths: end
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
|
|
|
|
jobs:
|
|
linux-pace-shadow:
|
|
name: Debug build, harness with assertions live
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 45
|
|
|
|
env:
|
|
APT_PKGS: build-essential libxkbcommon-dev libx11-xcb-dev xvfb x11-utils zlib1g-dev libfreetype-dev libegl1-mesa-dev libgles2-mesa-dev libgbm-dev libavcodec-dev libsdl2-dev libsdl-image1.2-dev libxml2-dev yasm
|
|
# Line tables are all a sanitizer report needs. configure and
|
|
# make take these in place of DEBUG=1's -O0 -g, adding their own.
|
|
CFLAGS: -O0 -g1
|
|
CXXFLAGS: -O0 -g1
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Apt cache key
|
|
id: apt
|
|
run: sh .github/workflows/scripts/apt-cache-key.sh "$APT_PKGS"
|
|
|
|
- name: Restore apt cache
|
|
uses: actions/cache/restore@v4
|
|
with:
|
|
path: ~/.apt-cache
|
|
key: ${{ steps.apt.outputs.key }}
|
|
restore-keys: ${{ steps.apt.outputs.prefix }}
|
|
|
|
- name: Install dependencies
|
|
timeout-minutes: 20
|
|
run: sh .github/workflows/scripts/apt-install.sh $APT_PKGS
|
|
|
|
- name: Save apt cache
|
|
if: env.APT_CACHE_SAVE == '1'
|
|
uses: actions/cache/save@v4
|
|
with:
|
|
path: ~/.apt-cache
|
|
key: ${{ steps.apt.outputs.key }}
|
|
|
|
- name: Link with lld
|
|
run: sh .github/workflows/scripts/use-lld.sh
|
|
|
|
- name: Configure
|
|
# Non-Qt, as the harness requires (with Qt, main() lives in
|
|
# ui_qt.o). Menu enabled: the menu lanes are half the point.
|
|
run: |
|
|
./configure \
|
|
--disable-qt \
|
|
--disable-discord \
|
|
--disable-cheevos \
|
|
--disable-networking \
|
|
--disable-ffmpeg
|
|
|
|
- name: Build with DEBUG=1 and -fsanitize=address,undefined
|
|
run: |
|
|
make -j$(getconf _NPROCESSORS_ONLN) SANITIZER=address,undefined DEBUG=1
|
|
|
|
- name: Run the threaded-video harness with assertions live
|
|
shell: bash
|
|
run: |
|
|
set -eu
|
|
# SAN=address is the harness's default and links exactly the
|
|
# build above; CYCLES=2 runs each toggling lane twice.
|
|
SAN=address CYCLES=2 make -C samples/gfx/threaded_video check
|
|
make -C samples/gfx/threaded_video clean
|
|
|
|
- name: Run the pacing sample (the menu table)
|
|
shell: bash
|
|
run: |
|
|
set -eu
|
|
make -C samples/runloop/pacing check
|
|
make -C samples/runloop/pacing clean
|