Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
cd78597
fix(qt): size the stream toast column by its real height, not a fixed…
zortos293 Oct 16, 2026
f920999
fix(qt): hold a stream notice's display while the toast column is hid…
zortos293 Oct 16, 2026
2909b25
ci(windows): deprecate the MSI installer; ship setup.exe and portable…
zortos293 Oct 16, 2026
78cd376
fix(streamer): drop duplicate ICE binding responses so WebRTC ping st…
zortos293 Oct 16, 2026
6546636
fix(windows): flush instead of rebuilding the MF decoder on recovery …
zortos293 Oct 16, 2026
ca3557c
fix(streamer): tolerate transient bundle NATT send failures (#1239)
zortos293 Oct 16, 2026
676b912
fix(linux): exclude Annex-B padding from VA-API decoding (#1131)
zortos293 Oct 16, 2026
950f44e
fix(flatpak): pick the Qt platform inside the sandbox instead of inhe…
zortos293 Oct 16, 2026
7b6d379
feat(qt): add --fullscreen and --quit-after-session launch options (#…
zortos293 Oct 16, 2026
474eace
fix(qt): hold --quit-after-session while a replacement launch is set …
zortos293 Oct 16, 2026
b000bfb
chore(release): bump the Qt app to 1.0.4 (#1249)
zortos293 Oct 16, 2026
25f47e2
fix(linux-audio): keep a 40 ms lead in the pw-cat pipe so playback st…
zortos293 Oct 16, 2026
4e8fc87
feat(deck): Steam Deck identity by default, View+Menu session chord, …
zortos293 Oct 16, 2026
39e1344
feat(decky): OpenNOW plugin for Steam Game Mode (#1246)
zortos293 Oct 16, 2026
08ec688
fix(deck): keep Steam Deck sign-ins in a local JSON file instead of t…
zortos293 Oct 16, 2026
72c21b5
feat(decky): let the plugin install and follow OpenNOW nightlies (#1253)
zortos293 Oct 16, 2026
3c4030c
docs(decky): install guide with Steam Deck screenshots and a stable p…
zortos293 Oct 16, 2026
a04fc17
ci(decky): publish one immutable release per plugin version (#1255)
zortos293 Oct 16, 2026
a706aaa
fix(decky): detect and install OpenNOW on DroidDeck (#1257)
zortos293 Oct 17, 2026
294dd75
fix(auth): survive and flag a wrong system clock; refuse sign-in unti…
zortos293 Oct 17, 2026
6927bf7
fix(qt): wrap the decoder-limited stream notice instead of eliding it…
zortos293 Oct 17, 2026
cc46f37
fix(decky): record the identity marker when the plugin sets Steam Dec…
zortos293 Oct 17, 2026
866bc2e
fix(streamer): send the native mic as plain Opus on the bundle's PT 1…
zortos293 Oct 17, 2026
8947914
fix(qt): stop the core first and bound teardown when OpenNOW quits (#…
zortos293 Oct 17, 2026
ac89dd0
fix(streamer): announce NVST chroma as the official 0/1 flag so 10-bi…
zortos293 Oct 17, 2026
93d9d0f
fix(input): surface hidraw permission failures for wheels and flight …
zortos293 Oct 17, 2026
d3d0e48
feat(linux): decode H.264, HEVC and AV1 through V4L2 request on ARM64…
zortos293 Oct 17, 2026
35aa5de
fix(qt): keep the clock refusal, reach the clock warning, focus the c…
zortos293 Oct 17, 2026
07cb41d
fix(linux): draw window controls when the compositor has no server-si…
zortos293 Oct 17, 2026
08822ce
Honor V4L2 request decode limits and surface FFmpeg errors (#1271)
zortos293 Oct 17, 2026
987ab3d
fix(core): keep the queue position from jumping between two numbers (…
zortos293 Oct 17, 2026
7b96678
fix(streamer): send the official NVB type 10 mouse settings to the ho…
zortos293 Oct 23, 2026
d0aab4a
fix(qt): improve frame generation motion and recover after size chang…
zortos293 Oct 23, 2026
67993ba
fix(linux): validate CUDA codec support with a decoded frame (#1285)
zortos293 Oct 23, 2026
0467152
fix(linux): validate NVDEC codec support before opening decoders (#1284)
zortos293 Oct 23, 2026
8499df9
fix(windows): allow choosing the setup installation directory (#1310)
zortos293 Oct 25, 2026
2fe0f7e
fix(macos): enable pointer lock by default and make it discoverable (…
zortos293 Oct 25, 2026
3137a36
feat: clean stream screenshots and recordings that continue after rec…
zortos293 Oct 25, 2026
333d445
feat(macos): build and publish Intel macOS Qt packages (#1311)
zortos293 Oct 25, 2026
e5a8f73
fix(linux): pad SAND capture allocations so V3DV can import 1440p fra…
zortos293 Oct 25, 2026
6362841
feat(linux): add a NO_SOFT_RENDERING hardware-only build option (#1317)
zortos293 Oct 25, 2026
859b718
fix(streamer): decode extended NVST teardown shutdown reasons (#1319)
zortos293 Oct 25, 2026
5e5c1b7
feat(macos): add branded DMG install screen (#1318)
StiensWout Oct 25, 2026
f2a5a03
feat(qt): expose a stream-end notice with the server error code (#1320)
zortos293 Oct 25, 2026
f65498d
fix(input): discard shell-owned controller events on gameplay handoff…
zortos293 Oct 25, 2026
2abdb43
feat(qt): show a stream-ended notice with the server error code (#1323)
zortos293 Oct 25, 2026
d153f0f
fix(core): show CloudMatch error codes in hex and parse every represe…
zortos293 Oct 25, 2026
5321978
fix(qt): keep terminal stream events through queue pressure and late …
zortos293 Oct 25, 2026
63737bc
feat(qt): show the stream-ended notice on the console surface (#1326)…
zortos293 Oct 25, 2026
78bd836
ci: persist Rust builds and parallelize native checks (#1322)
zortos293 Oct 26, 2026
67f35d3
test(qt): retain joystick discovery across controller test cases (#1330)
zortos293 Oct 26, 2026
9b87ee8
test(qt): preserve virtual D-pad edges when polling is delayed (#1331)
zortos293 Oct 26, 2026
907443b
ci: build nightly Intel Mac packages on ARM (#1332)
zortos293 Oct 26, 2026
c6a3374
fix(qt): allow new launches during regional discovery outages (#1334)
zortos293 Oct 27, 2026
a087082
chore(release): reconcile main and dev for stable 1.0.4
zortos293 Oct 27, 2026
e9bfcaa
fix(decky): remove unsupported progress bar property (#1336)
zortos293 Oct 27, 2026
c0063ff
fix(qt): drain stream notices within available overlay space (#1338)
zortos293 Oct 27, 2026
a07cbdb
fix(auth): migrate existing Steam Deck keyring sessions (#1337)
zortos293 Oct 27, 2026
e64d73d
fix(core): keep cancellation responsive and settings publication orde…
zortos293 Oct 27, 2026
620db70
fix(settings): keep persisted proxy credentials private (#1345)
zortos293 Oct 27, 2026
245b0bb
fix(streamer): preserve recording clocks and finish audio teardown (#…
zortos293 Oct 27, 2026
1f99f20
fix(linux): reject corrupt frames and preserve decoded color metadata…
zortos293 Oct 27, 2026
288fab4
test(ci): publish cancellation fixture PID atomically (#1346)
zortos293 Oct 27, 2026
ea77052
fix(release): pin runtime inputs and verify tag provenance (#1341)
zortos293 Oct 27, 2026
bfb89d0
test(core): track Discord fixture connection ownership (#1349)
zortos293 Oct 27, 2026
059034a
fix(decky): authenticate bundles and serialize installation ownership…
zortos293 Oct 27, 2026
ef614b3
fix(account): bind mutations to intent and retry saved authentication…
zortos293 Oct 27, 2026
5376267
fix(session): settle graceful quits and recover uncertain allocations…
zortos293 Oct 27, 2026
956fa8b
fix(streamer): bound startup and preserve native input ownership (#1348)
zortos293 Oct 27, 2026
38e227d
fix(state): order settings recovery and stabilize Store paging (#1350)
zortos293 Oct 27, 2026
b3198fc
fix(packaging): preserve portable files and validate release contract…
zortos293 Oct 27, 2026
9c5a9cb
fix(streamer): preserve negotiated V4L2 color defaults (#1354)
zortos293 Oct 27, 2026
69d7ab4
fix(qt): preserve stream generations and ordered ad reporting (#1351)
zortos293 Oct 27, 2026
52215fb
fix(qt): restore keyboard controls and literal title rendering (#1353)
zortos293 Oct 27, 2026
42f3c63
fix(packaging): require the complete core capability contract (#1356)
zortos293 Oct 27, 2026
0461689
Own Vulkan Wayland window decorations before surface creation (#1355)
zortos293 Oct 27, 2026
b3fe710
fix(qt): preserve virtual controller edges in smoke acceptance (#1357)
zortos293 Oct 27, 2026
9ed8530
fix(input): validate Linux HID serials against their sysfs source (#1…
zortos293 Oct 28, 2026
a766d49
fix(input): preserve Windows modifier sides and AltGr routing (#1360)
zortos293 Oct 28, 2026
c864562
fix(qt): release Wayland Vulkan swapchains before surface teardown (#…
zortos293 Oct 28, 2026
213f482
diagnostics: measure native mouse submission latency (#1362)
zortos293 Oct 28, 2026
6fd68f2
fix(qt): consume launch intent after successful session creation (#1358)
zortos293 Oct 28, 2026
2846042
fix(windows): suspend stream capture for native window moves (#1363)
zortos293 Oct 28, 2026
b0e32ea
test(windows): run the stream-item move-loop probe in CI (#1364)
zortos293 Oct 28, 2026
2bc445d
fix(input): show NO HID PATH for allowlisted devices without a hidraw…
zortos293 Oct 28, 2026
257d648
fix(qt): show blocked flight devices in stream statistics (#1368)
zortos293 Oct 28, 2026
01a0ba5
fix(qt): preserve sender timing and bound stream presentation (#1298)
zortos293 Oct 29, 2026
212c062
fix(input): restore German keys and preserve rejected-resume layouts …
zortos293 Oct 29, 2026
c295949
fix(core): send enablePersistingInGameSettings from the user toggle o…
Alexis-D-ff Oct 29, 2026
5b89338
fix(linux): create VA-API placeholder context at 64x64 so AMD VCN is …
adhikasp Oct 29, 2026
503e927
FG-Legacy: frame generation levels (2×–4×), capability test, in-strea…
MONZikWasTaken Nov 3, 2026
0e9b824
fix(webrtc): avoid pending and installed SDP MID collisions (#1406)
zortos293 Nov 3, 2026
cb2c796
fix(network): measure region latency with an HTTPS round trip (#1287)
Alexis-D-ff Nov 3, 2026
3555c04
fix(session): announce real display DPI instead of hardcoded Mac 144 …
Alexis-D-ff Nov 3, 2026
f08294e
fix(accounts): normalize accepted callback sockets before bounded I/O…
zortos293 Nov 3, 2026
f4c121a
fix(core): retire allocation recovery on native session end (#1399)
zortos293 Nov 3, 2026
7183db9
fix(webrtc): align native signaling with the v3 wire contract (#1400)
zortos293 Nov 3, 2026
65f54a9
fix(input): release tracked mouse buttons after capture loss (#1398)
zortos293 Nov 3, 2026
1c88e21
feat(settings): add missing shared resolution presets (#1407)
zortos293 Nov 4, 2026
88cac6f
docs(qt): describe the shipped frame generation engine (#1408)
zortos293 Nov 4, 2026
ce1cf74
FlyHigh: replace the Windows frame-generation fallback (#1409)
MONZikWasTaken Nov 6, 2026
d6da8a2
fix(locales): register FlyHigh frame generation source text (#1421)
zortos293 Nov 6, 2026
f42f86a
test(core): reserve the failed proxy endpoint until shutdown (#1424)
zortos293 Nov 6, 2026
e8c21c6
fix(qt): stop frame generation repaint requests after drain (#1422)
zortos293 Nov 6, 2026
ed2af35
fix(qt): restrict FlyHigh to application-local bundles (#1423)
zortos293 Nov 6, 2026
18fc8f5
fix(accounts): recognize linked stores with optional metadata
Kief5555 Nov 8, 2026
2418243
diagnostics(microphone): distinguish silent capture from uplink loss
Kief5555 Nov 8, 2026
3b520f8
test(qt): wait for dialog layout before checkbox interaction
Kief5555 Nov 8, 2026
13123fe
fix(qt): retain stream lifecycle callbacks under queue pressure
Kief5555 Nov 8, 2026
6f5b380
test(qt): capture desktop layout in explicit SDR smoke mode
Kief5555 Nov 8, 2026
81827df
fix(settings): preserve spacing and adapt crowded controls
Kief5555 Nov 8, 2026
e6df5f8
fix(ui): preserve catalog controls and fit Home navigation to the vie…
Kief5555 Nov 8, 2026
c23a9f6
fix(ui): space contextual shortcuts and stabilize game-label anchors
Kief5555 Nov 8, 2026
52cc054
docs(release): record desktop issue status and 1.0.4 highlights
Kief5555 Nov 8, 2026
0c14221
fix(macos): use Icon Composer artwork for the bundle and Dock
Kief5555 Nov 8, 2026
c35e2c4
fix(streamer): preserve hardware-only failures before fallback
Kief5555 Nov 8, 2026
f60e08f
fix(framegen): retain motion defaults and quarantine unverified bridge
Kief5555 Nov 8, 2026
457aa16
Merge pull request #1425 from OpenCloudGaming/codex/desktop-issue-fixes
Kief5555 Nov 8, 2026
9dbb6c4
fix(ui): cancel deferred screen work when its owner closes
Kief5555 Nov 8, 2026
e965847
test(qt): match JSON fixture boundaries and provider variants
Kief5555 Nov 8, 2026
e1f1d0a
docs(release): include screen lifecycle fixes
Kief5555 Nov 8, 2026
70a64ca
fix(settings): include the requested 3640x1080 preset
Kief5555 Nov 8, 2026
7e5be95
Merge pull request #1426 from OpenCloudGaming/codex/desktop-focus-lif…
Kief5555 Nov 8, 2026
3950124
fix(accounts): respect the exact non-expiring link sentinel
Kief5555 Nov 8, 2026
58d8d99
style(accounts): format expiry regression fixture
Kief5555 Nov 8, 2026
2197127
Merge pull request #1427 from OpenCloudGaming/codex/account-link-expi…
Kief5555 Nov 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
46 changes: 46 additions & 0 deletions .github/actions/linux-dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Install Linux native media dependencies
description: Install the shared Qt, input, graphics and media build and validation dependencies
inputs:
arch:
description: Target architecture, x86_64 or aarch64
required: true
runs:
using: composite
steps:
- name: Install Linux media dependencies
if: runner.os == 'Linux'
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y \
clang \
libclang-dev \
libasound2-dev \
libdbus-1-dev \
libdrm-dev \
libgstreamer-plugins-bad1.0-0 \
libgstreamer-plugins-good1.0-0 \
libpulse-dev \
libsecret-1-dev \
libva-dev \
libvulkan-dev \
libwayland-dev \
libx11-dev \
libxcursor-dev \
libxext-dev \
libxfixes-dev \
libxi-dev \
libxrandr-dev \
libxrender-dev \
libxss-dev \
mesa-vulkan-drivers \
make \
nasm \
pkg-config \
wayland-protocols \
xvfb

- name: Install ARM64 V4L2 request dependencies
if: inputs.arch == 'aarch64'
shell: bash
run: sudo apt-get install -y libudev-dev
108 changes: 108 additions & 0 deletions .github/actions/linux-package/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
name: Package and verify Linux applications
description: Build and smoke-test the AppImage and bundled DEB from the same validated release tree
inputs:
arch:
description: Target architecture, x86_64 or aarch64
required: true
channel:
description: Update channel
required: true
runs:
using: composite
steps:
- name: Create Linux AppImage
if: runner.os == 'Linux'
shell: bash
env:
APPIMAGE_EXTRACT_AND_RUN: "1"
EXTRA_PLATFORM_PLUGINS: libqoffscreen.so;libqwayland-egl.so;libqwayland-generic.so
EXTRA_QT_MODULES: waylandcompositor
LINUXDEPLOY_ARCH: ${{ inputs.arch }}
LINUXDEPLOY_SHA256: ${{ inputs.arch == 'aarch64' && '620095110d693282b8ebeb244a95b5e911cf8f65f76c88b4b47d16ae6346fcff' || 'c20cd71e3a4e3b80c3483cef793cda3f4e990aca14014d23c544ca3ce1270b4d' }}
QT_PLUGIN_SHA256: ${{ inputs.arch == 'aarch64' && 'bf1c24aff6d749b5cf423afad6f15abd4440f81dec1aab95706b25f6667cdcf1' || '15106be885c1c48a021198e7e1e9a48ce9d02a86dd0a1848f00bdbf3c1c92724' }}
APPIMAGE_RUNTIME_SHA256: ${{ inputs.arch == 'aarch64' && '00cbdfcf917cc6c0ff6d3347d59e0ca1f7f45a6df1a428a0d6d8a78664d87444' || '2fca8b443c92510f1483a883f60061ad09b46b978b2631c807cd873a47ec260d' }}
BUILD_CHANNEL: ${{ inputs.channel }}
PACKAGE_ARCH: ${{ inputs.arch == 'aarch64' && 'arm64' || 'x64' }}
run: |
export LD_LIBRARY_PATH="$RUNNER_TEMP/SDL-install/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
mkdir -p build/qt-packages
cmake --install build/opennow-qt-release --config Release \
--prefix "$PWD/build/AppDir/usr"
python3 opennow-qt/packaging/verify_linux_package.py build/AppDir/usr/bin --libdir lib
curl --fail --location --retry 3 \
"https://github.com/linuxdeploy/linuxdeploy/releases/download/1-alpha-20251107-1/linuxdeploy-${LINUXDEPLOY_ARCH}.AppImage" \
--output "build/linuxdeploy-${LINUXDEPLOY_ARCH}.AppImage"
curl --fail --location --retry 3 \
"https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/1-alpha-20250213-1/linuxdeploy-plugin-qt-${LINUXDEPLOY_ARCH}.AppImage" \
--output "build/linuxdeploy-plugin-qt-${LINUXDEPLOY_ARCH}.AppImage"
echo "$LINUXDEPLOY_SHA256 build/linuxdeploy-${LINUXDEPLOY_ARCH}.AppImage" | sha256sum --check --strict
echo "$QT_PLUGIN_SHA256 build/linuxdeploy-plugin-qt-${LINUXDEPLOY_ARCH}.AppImage" | sha256sum --check --strict
curl --fail --location --retry 5 --retry-all-errors --retry-max-time 300 \
--connect-timeout 20 --max-time 120 \
"https://github.com/AppImage/type2-runtime/releases/download/20251108/runtime-${LINUXDEPLOY_ARCH}" \
--output "build/appimage-runtime-${LINUXDEPLOY_ARCH}"
echo "$APPIMAGE_RUNTIME_SHA256 build/appimage-runtime-${LINUXDEPLOY_ARCH}" | sha256sum --check --strict
chmod +x "build/linuxdeploy-${LINUXDEPLOY_ARCH}.AppImage" "build/linuxdeploy-plugin-qt-${LINUXDEPLOY_ARCH}.AppImage"
install -Dm644 opennow-qt/packaging/opennow-vaapi-hook.sh \
build/AppDir/apprun-hooks/opennow-vaapi-hook.sh
for library in libva libva-drm; do
install -Dm644 "$(pkg-config --variable=libdir "$library")/$library.so.2" \
"build/AppDir/usr/lib/libva-fallback/$library.so.2"
install -Dm644 "/usr/share/doc/${library}2/copyright" \
"build/AppDir/usr/share/doc/${library}2/copyright"
done
export LDAI_UPDATE_INFORMATION
LDAI_UPDATE_INFORMATION=$(python3 opennow-qt/packaging/appimage_updates.py information \
--channel "$BUILD_CHANNEL" --arch "$PACKAGE_ARCH")
QMAKE="$QT_ROOT_DIR/bin/qmake" \
QML_SOURCES_PATHS="$PWD/opennow-qt/qml" \
LDAI_RUNTIME_FILE="$PWD/build/appimage-runtime-${LINUXDEPLOY_ARCH}" \
LDAI_OUTPUT="OpenNOW-Qt-${OPENNOW_BUILD_VERSION}-Linux-${{ inputs.arch == 'aarch64' && 'arm64' || 'x64' }}.AppImage" \
"build/linuxdeploy-${LINUXDEPLOY_ARCH}.AppImage" \
--appdir build/AppDir \
--desktop-file build/AppDir/usr/share/applications/io.github.opencloudgaming.OpenNOW.desktop \
--icon-file build/AppDir/usr/share/icons/hicolor/scalable/apps/io.github.opencloudgaming.OpenNOW.svg \
--exclude-library 'libva.so.*' \
--exclude-library 'libva-drm.so.*' \
--exclude-library libglib-2.0.so.0 \
--exclude-library libgobject-2.0.so.0 \
--exclude-library libgio-2.0.so.0 \
--exclude-library libgmodule-2.0.so.0 \
--plugin qt \
--output appimage
test -f build/AppDir/usr/plugins/platforms/libqoffscreen.so
test -f build/AppDir/usr/plugins/platforms/libqwayland-egl.so
test -f build/AppDir/usr/plugins/platforms/libqwayland-generic.so
test -f build/AppDir/usr/plugins/wayland-shell-integration/libxdg-shell.so
LD_LIBRARY_PATH="$PWD/build/AppDir/usr/lib:$LD_LIBRARY_PATH" \
python3 opennow-qt/packaging/verify_linux_package.py build/AppDir/usr/bin --libdir lib --appdir build/AppDir
python3 opennow-qt/packaging/appimage_updates.py verify \
--channel "$BUILD_CHANNEL" --arch "$PACKAGE_ARCH" \
--appimage "OpenNOW-Qt-${OPENNOW_BUILD_VERSION}-Linux-${PACKAGE_ARCH}.AppImage"
mv OpenNOW-Qt-*.AppImage OpenNOW-Qt-*.AppImage.zsync build/qt-packages/

- name: Create bundled Linux DEB
if: runner.os == 'Linux'
shell: bash
run: |
cpack --config build/opennow-qt-release/CPackConfig.cmake \
-D "CPACK_PROJECT_CONFIG_FILE=$PWD/opennow-qt/packaging/LinuxBundledDeb.cmake" \
-D "OPENNOW_APPDIR=$PWD/build/AppDir" \
-C Release -G DEB -B build/qt-packages
debs=(build/qt-packages/*.deb)
[[ ${#debs[@]} -eq 1 && -f "${debs[0]}" ]]
bash opennow-qt/packaging/verify_bundled_deb.sh "${debs[0]}"

- name: Smoke-test Linux AppImage
if: runner.os == 'Linux'
shell: bash
env:
APPIMAGE_EXTRACT_AND_RUN: "1"
QT_QPA_PLATFORM: offscreen
run: |
appimages=(build/qt-packages/OpenNOW-Qt-*.AppImage)
[[ ${#appimages[@]} -eq 1 && -f "${appimages[0]}" ]]
env -u QT_PLUGIN_PATH -u QT_QPA_PLATFORM_PLUGIN_PATH \
-u QML2_IMPORT_PATH -u QML_IMPORT_PATH -u LD_LIBRARY_PATH \
"${appimages[0]}" \
--smoke-test --allow-multiple-instances --route home --reduced-motion
99 changes: 31 additions & 68 deletions .github/actions/qt-unit-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,32 +90,6 @@ runs:
- name: Limit Rust debug info
shell: bash
run: echo "CARGO_PROFILE_DEV_DEBUG=line-tables-only" >> "$GITHUB_ENV"
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6
with:
shared-key: qt-checks-${{ inputs.label }}
cache-bin: false
cache-on-failure: true
save-if: ${{ github.event_name == 'push' }}
workspaces: |
native/opennow-core -> target
native/opennow-streamer -> target
native/opennow-core -> ../../build/opennow-qt-checks/rust-target
- name: Lint Rust
shell: bash
working-directory: ${{ env.OPENNOW_CHECKOUT }}
env:
CARGO_BUILD_JOBS: ${{ inputs.parallel }}
run: |
cargo clippy --locked --manifest-path native/opennow-core/Cargo.toml --all-targets -- -D warnings
cargo clippy --locked --manifest-path native/opennow-streamer/Cargo.toml --workspace --all-targets -- -D warnings
- name: Build Rust tests
shell: bash
working-directory: ${{ env.OPENNOW_CHECKOUT }}
env:
CARGO_BUILD_JOBS: ${{ inputs.parallel }}
run: |
cargo test --locked --no-run --manifest-path native/opennow-core/Cargo.toml
cargo test --locked --no-run --manifest-path native/opennow-streamer/Cargo.toml --workspace
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
Expand All @@ -140,28 +114,31 @@ runs:
version: release-3.2.20
target-arch: ${{ inputs.target-arch }}
parallel: ${{ inputs.parallel }}
- name: Cache complete Rust build state
uses: ./.github/actions/rust-build-cache
with:
shared-key: qt-checks-${{ inputs.label }}
workspaces: |
native/opennow-core -> target
native/opennow-streamer -> target
native/opennow-core -> ../../build/opennow-qt-checks/rust-target
- name: Check QML syntax
shell: bash
working-directory: ${{ env.OPENNOW_CHECKOUT }}
run: find opennow-qt/qml -name '*.qml' -print0 | xargs -0 -n1 "$QT_ROOT_DIR/bin/qmlformat" > /dev/null
- name: Compile Qt unit tests only
- name: Lint Rust
shell: bash
working-directory: ${{ env.OPENNOW_CHECKOUT }}
env:
CARGO_BUILD_JOBS: ${{ inputs.parallel }}
run: python .github/scripts/run-native-checks.py lint --parallel "$CARGO_BUILD_JOBS"
- name: Build Rust and Qt tests concurrently
shell: bash
working-directory: ${{ env.OPENNOW_CHECKOUT }}
env:
BUILD_PARALLEL: ${{ inputs.parallel }}
CARGO_BUILD_JOBS: ${{ inputs.parallel }}
TARGET_ARCH: ${{ inputs.target-arch }}
run: |
args=()
if [[ "$RUNNER_OS" == Windows ]]; then
args+=(-DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl)
elif [[ "$RUNNER_OS" == macOS ]]; then
args+=("-DCMAKE_OSX_ARCHITECTURES=$TARGET_ARCH" "-DCMAKE_OSX_DEPLOYMENT_TARGET=$MACOSX_DEPLOYMENT_TARGET")
fi
cmake -S opennow-qt -B build/opennow-qt-checks -G Ninja \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_PREFIX_PATH="$RUNNER_TEMP/SDL-install" "${args[@]}"
cmake --build build/opennow-qt-checks --target opennow-ci-unit-tests --parallel "$BUILD_PARALLEL"
run: python .github/scripts/run-native-checks.py build --parallel "$CARGO_BUILD_JOBS"
- name: Finish Windows Media Foundation installation
if: runner.os == 'Windows'
shell: pwsh
Expand All @@ -173,31 +150,17 @@ runs:
working-directory: ${{ env.OPENNOW_CHECKOUT }}
env:
CARGO_BUILD_JOBS: ${{ inputs.parallel }}
run: |
cargo test --locked --manifest-path native/opennow-core/Cargo.toml
cargo test --locked --manifest-path native/opennow-streamer/Cargo.toml --workspace
- name: Test signed update helper integration
shell: bash
working-directory: ${{ env.OPENNOW_CHECKOUT }}
env:
CARGO_BUILD_JOBS: ${{ inputs.parallel }}
OPENNOW_UPDATE_TEST_TARGET_DIR: ${{ env.OPENNOW_CHECKOUT }}/native/opennow-core/target
run: |
if [[ "$RUNNER_OS" == Windows ]]; then
python opennow-qt/tests/run_update_helper_integration.py
else
python3 opennow-qt/tests/run_update_helper_integration.py
fi
- name: Run Qt unit tests
shell: bash
working-directory: ${{ env.OPENNOW_CHECKOUT }}
env:
BUILD_PARALLEL: ${{ inputs.parallel }}
run: |
trap 'status=$?; if (( status != 0 )); then
for log in build/opennow-qt-checks/Testing/Temporary/LastTestsFailed.log build/opennow-qt-checks/Testing/Temporary/LastTest.log; do
if [[ -f "$log" ]]; then echo "::group::$log"; cat "$log"; echo "::endgroup::"; fi
done
fi; exit "$status"' EXIT
ctest --test-dir build/opennow-qt-checks --output-on-failure --no-tests=error \
-L ci-unit --parallel "$BUILD_PARALLEL" --output-junit qt-unit-tests.xml
run: python .github/scripts/run-native-checks.py test --parallel "$CARGO_BUILD_JOBS"
- name: Upload native check diagnostics
if: always()
uses: actions/upload-artifact@v4
with:
name: native-check-diagnostics-${{ inputs.label }}
path: |
build/ci-native-logs
build/opennow-qt-checks/qt-unit-tests.xml
build/opennow-qt-checks/Testing/Temporary
native/opennow-core/target/cargo-timings
native/opennow-streamer/target/cargo-timings
if-no-files-found: ignore
retention-days: 7
64 changes: 64 additions & 0 deletions .github/actions/rust-build-cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Persistent Rust build cache
description: Preserve complete Cargo targets and downloads with trusted-branch writers
inputs:
shared-key:
description: Caller namespace shared by compatible build jobs
required: true
workspaces:
description: Newline-separated workspace -> relative target path mappings
required: true
save-if:
description: Allow saving on push or workflow_dispatch from dev/main only; false disables saving
required: false
default: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && (github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main') }}
runs:
using: composite
steps:
- name: Identify Rust cache environment
id: identity
shell: python
env:
RUST_CACHE_SHARED_KEY: ${{ inputs.shared-key }}
RUST_CACHE_WORKSPACES: ${{ inputs.workspaces }}
RUST_CACHE_SAVE_IF: ${{ inputs.save-if }}
run: |
import runpy
import sys
sys.argv = ["rust-build-cache.py", "prepare"]
runpy.run_path(".github/scripts/rust-build-cache.py", run_name="__main__")
- name: Mount Linux Rust Sticky Disk
if: runner.os == 'Linux'
uses: useblacksmith/stickydisk@3f6be1451e3cad893b778bc93495c80452a5da26
with:
key: ${{ steps.identity.outputs.disk-key }}
path: ${{ runner.temp }}/opennow-rust-cache
commit: ${{ steps.identity.outputs.save }}
- name: Hydrate Rust targets and verified source timestamps
if: runner.os == 'Linux'
shell: python
run: |
import runpy
import sys
sys.argv = ["rust-build-cache.py", "link"]
runpy.run_path(".github/scripts/rust-build-cache.py", run_name="__main__")
- name: Restore and register post-job Rust archive save
if: runner.os != 'Linux' && steps.identity.outputs.save == 'true'
uses: actions/cache@v4
with:
path: ${{ steps.identity.outputs.paths }}
key: ${{ steps.identity.outputs.archive-key }}
restore-keys: ${{ steps.identity.outputs.restore-keys }}
- name: Restore read-only Rust archive
if: runner.os != 'Linux' && steps.identity.outputs.save != 'true'
uses: actions/cache/restore@v4
with:
path: ${{ steps.identity.outputs.paths }}
key: ${{ steps.identity.outputs.archive-key }}
restore-keys: ${{ steps.identity.outputs.restore-keys }}
- name: Report Rust cache setup timing
shell: python
run: |
import runpy
import sys
sys.argv = ["rust-build-cache.py", "diagnostics"]
runpy.run_path(".github/scripts/rust-build-cache.py", run_name="__main__")
14 changes: 12 additions & 2 deletions .github/actions/sdl3/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ inputs:
description: SDL release tag
required: true
target-arch:
description: Target architecture, x64 or arm64
description: Target architecture, x64 or arm64, or x86_64 on macOS
required: true
parallel:
description: Maximum concurrent build jobs
required: true
cmake-toolchain-file:
description: Optional Linux cross-compilation toolchain
default: ""
sdk-identity:
description: Target sysroot package identity for cross-compilation caches
default: ""
runs:
using: composite
steps:
Expand All @@ -32,16 +38,20 @@ runs:
uses: actions/cache@v4
with:
path: ${{ runner.temp }}/SDL-install
key: sdl3-v2-${{ runner.os }}-${{ runner.arch }}-${{ inputs.target-arch }}-${{ inputs.version }}-${{ steps.toolchain.outputs.digest }}-${{ hashFiles('.github/actions/sdl3/action.yml') }}
key: sdl3-v2-${{ runner.os }}-${{ runner.arch }}-${{ inputs.target-arch }}-${{ inputs.version }}-${{ steps.toolchain.outputs.digest }}-${{ inputs.sdk-identity }}-${{ inputs.cmake-toolchain-file != '' && hashFiles('.github/cmake/linux-arm64-cross.cmake') || 'native' }}-${{ hashFiles('.github/actions/sdl3/action.yml') }}
- name: Build SDL3
if: steps.cache.outputs.cache-hit != 'true'
shell: bash
env:
SDL_VERSION: ${{ inputs.version }}
SDL_TARGET_ARCH: ${{ inputs.target-arch }}
SDL_BUILD_PARALLEL: ${{ inputs.parallel }}
SDL_CMAKE_TOOLCHAIN_FILE: ${{ inputs.cmake-toolchain-file }}
run: |
args=()
if [[ -n "$SDL_CMAKE_TOOLCHAIN_FILE" ]]; then
args+=("-DCMAKE_TOOLCHAIN_FILE=$SDL_CMAKE_TOOLCHAIN_FILE")
fi
if [[ "$RUNNER_OS" == Windows ]]; then
args+=(-G "Ninja Multi-Config" -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl)
if [[ "$SDL_TARGET_ARCH" == arm64 ]]; then
Expand Down
11 changes: 11 additions & 0 deletions .github/cmake/linux-arm64-cross.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR aarch64)
set(CMAKE_SYSROOT "$ENV{OPENNOW_ARM64_SYSROOT}")
set(CMAKE_C_COMPILER aarch64-linux-gnu-gcc)
set(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++)
set(CMAKE_FIND_ROOT_PATH "${CMAKE_SYSROOT}" "$ENV{QT_ROOT_DIR}" "$ENV{RUNNER_TEMP}/SDL-install")
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE BOTH)
set(PKG_CONFIG_EXECUTABLE "$ENV{OPENNOW_ARM64_TOOLS}/aarch64-linux-gnu-pkg-config" CACHE FILEPATH "" FORCE)
Loading
Loading