Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QProcess and Windows runner on GitHub Actions
Forum Updated to NodeBB v4.3 + New Features

QProcess and Windows runner on GitHub Actions

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 114 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    agarny
    wrote on last edited by
    #1

    Hi,

    I have some tests that I run using QProcess. I basically have something like this:

    ...
    
    QProcess process;
    
    process.setProcessChannelMode(QProcess::MergedChannels);
    process.start(someTest, QStringList());
    process.waitForFinished(-1);
    
    std::cout << qPrintable(process.readAll()) << std::endl;
    
    ...
    

    It's all working fine locally using Windows, Linux and macOS. However, I also want to run them using GitHub Actions and although it's fine on Linux and macOS, it's not on Windows. For whatever reason, on the GHA's Windows runner, QProcess::readAll() always returns an empty QByteArray. I have tried various things (e.g., https://devdreamz.com/question/225292-get-output-in-qt-qprocessstart-and-qprocessreadallstandardoutput), but to no avail.

    Has someone else experienced the same with QProcess and GHA's Windows runner and, more importantly, found a way to get it to work?

    Cheers, Alan.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved