From 37a1a75de1b68c8551b0f8ab6fbfe2c81c66178e Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Fri, 28 Aug 2026 21:03:47 -0600 Subject: [PATCH] ci(linux): pass QMAKE to cxx-qt-build; fix(player): macOS match covers StreamType::Direct MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit aarch64 runner: cxx-qt-build reported QtMissing with a correct QT_ROOT_DIR — set QMAKE/CMAKE_PREFIX_PATH explicitly (as macOS/Windows already do) and print the qmake version before the build. macOS: StreamType::output_sample_rate (macOS-only) matched Rodio only; Direct is intentionally not cfg-gated, so the macOS build failed with E0004. A direct sink answers with its opened rate. cc --- .github/workflows/build-qt-linux.yml | 7 +++++++ crates/qbz-player/src/player/mod.rs | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/build-qt-linux.yml b/.github/workflows/build-qt-linux.yml index 172cbc302..88595421b 100644 --- a/.github/workflows/build-qt-linux.yml +++ b/.github/workflows/build-qt-linux.yml @@ -145,7 +145,14 @@ jobs: # Keep symbols in this build: the unstripped copy is archived for # crash symbolication, then stripped for every shipped artifact. CARGO_PROFILE_RELEASE_STRIP: "none" + # EXPLICIT qmake, as the macOS/Windows recipes do. On the arm64 + # runner cxx-qt-build failed with "Could not find Qt installation: + # QtMissing" although QT_ROOT_DIR was correct (2026-08-29 run) — + # the PATH lookup is not something to rely on across hosts. + QMAKE: ${{ env.QT_ROOT_DIR }}/bin/qmake + CMAKE_PREFIX_PATH: ${{ env.QT_ROOT_DIR }} run: | + "$QMAKE" -query QT_VERSION cargo build --release --manifest-path crates/Cargo.toml -p qbz-qt cp crates/target/release/qbz qbz-unstripped strip -o qbz crates/target/release/qbz diff --git a/crates/qbz-player/src/player/mod.rs b/crates/qbz-player/src/player/mod.rs index 00f08fa38..a435fb8d5 100644 --- a/crates/qbz-player/src/player/mod.rs +++ b/crates/qbz-player/src/player/mod.rs @@ -620,6 +620,10 @@ impl StreamType { fn output_sample_rate(&self) -> u32 { match self { StreamType::Rodio { sink, .. } => sink.config().sample_rate().get(), + // `Direct` is deliberately not cfg-gated (see the enum), so this + // macOS-only match must name it: a direct sink reports the rate it + // was opened at. Without this arm the macOS build does not compile. + StreamType::Direct(sink) => sink.sample_rate(), } } }