Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,22 @@ jobs:

- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
msystem: UCRT64
update: true
install: >-
mingw-w64-x86_64-cmake
mingw-w64-x86_64-gcc
mingw-w64-x86_64-ninja
mingw-w64-x86_64-pkgconf
mingw-w64-x86_64-qt6-base
mingw-w64-x86_64-qt6-multimedia
mingw-w64-x86_64-ffmpeg
mingw-w64-ucrt-x86_64-cmake
mingw-w64-ucrt-x86_64-gcc
mingw-w64-ucrt-x86_64-ninja
mingw-w64-ucrt-x86_64-pkgconf
mingw-w64-ucrt-x86_64-qt6-base
mingw-w64-ucrt-x86_64-qt6-multimedia
mingw-w64-ucrt-x86_64-ffmpeg
git

- name: Configure
run: >-
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug
-DCMAKE_PREFIX_PATH=/mingw64
-DCMAKE_PREFIX_PATH=/ucrt64

- name: Build
run: cmake --build build
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,20 @@ jobs:

- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
msystem: UCRT64
update: true
install: >-
mingw-w64-x86_64-cmake
mingw-w64-x86_64-gcc
mingw-w64-x86_64-ninja
mingw-w64-x86_64-pkgconf
mingw-w64-x86_64-qt6-base
mingw-w64-x86_64-qt6-multimedia
mingw-w64-x86_64-ffmpeg
mingw-w64-ucrt-x86_64-cmake
mingw-w64-ucrt-x86_64-gcc
mingw-w64-ucrt-x86_64-ninja
mingw-w64-ucrt-x86_64-pkgconf
mingw-w64-ucrt-x86_64-qt6-base
mingw-w64-ucrt-x86_64-qt6-multimedia
mingw-w64-ucrt-x86_64-ffmpeg
zip

- name: Configure
run: cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TEST=OFF -DCMAKE_PREFIX_PATH=/mingw64
run: cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TEST=OFF -DCMAKE_PREFIX_PATH=/ucrt64

- name: Build
run: cmake --build build
Expand Down
4 changes: 2 additions & 2 deletions scripts/bundle_windows.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Collects the executable, the Qt runtime and the MinGW/FFmpeg DLLs into a
# self-contained folder (run inside an MSYS2 MINGW64 shell).
# self-contained folder (run inside an MSYS2 UCRT64 shell).
set -euo pipefail

EXE="${1:?usage: bundle_windows.sh <exe> <dist>}"
Expand All @@ -23,7 +23,7 @@ copy_deps() {
cp "$dll" "$DIST/"
copy_deps "$DIST/$base"
fi
done < <(ldd "$target" 2>/dev/null | awk '{print $3}' | grep -E '^/mingw64/bin/' | sort -u)
done < <(ldd "$target" 2>/dev/null | awk '{print $3}' | grep -E '^/(mingw64|ucrt64)/bin/' | sort -u)
}

copy_deps "$DIST/$BASE"
Expand Down
23 changes: 20 additions & 3 deletions test/test_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,16 +456,33 @@ TEST(MainWindowTest, CacheServesRevisitedFrames) {
}

QSettings().setValue("progressMode", 0);
QSettings().setValue("perfLogVisible", true);
MainWindow window;
window.show();
QApplication::processEvents();

// Enable the log through the UI action: QSettings defaults are not reliable
// in the offscreen test app on every platform.
for (QAction* menu_action : window.menuBar()->actions()) {
if (menu_action->menu() == nullptr) {
continue;
}
for (QAction* entry : menu_action->menu()->actions()) {
if (entry->text().contains("Performance log")) {
entry->setChecked(true);
}
}
}
QApplication::processEvents();

ASSERT_TRUE(
window.LoadFile(QString::fromStdString(data_path("output.h264"))));
QApplication::processEvents();

QTest::keyClick(&window, Qt::Key_Right);
auto* slider = window.findChild<QSlider*>();
ASSERT_NE(slider, nullptr);
slider->setValue(1);
QApplication::processEvents();
QTest::keyClick(&window, Qt::Key_Left);
slider->setValue(0);
QApplication::processEvents();

auto* log = window.findChild<QPlainTextEdit*>("perfLog");
Expand Down
Loading