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. Run Qt app headless in Github Actions on macOS
Forum Updated to NodeBB v4.3 + New Features

Run Qt app headless in Github Actions on macOS

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 373 Views 2 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.
  • V Offline
    V Offline
    Vadi2
    wrote on last edited by
    #1

    How can I run my Qt Application in a headless environment such as Github Actions on macOS?

    This is easily solved on Linux with xvfb-run but no similar alternatives seem to exist on macOS.

    1 Reply Last reply
    0
    • SGaistS SGaist

      Hi,

      You can use the offscreen platform plugin for that.

      V Offline
      V Offline
      Vadi2
      wrote on last edited by
      #3

      Thank you.

      I had troubles running it with the offscreen plugin due to differences in application/library signing, but worked out that the headless issue itself was a red herring: an application can run just fine in Github Actions on macOS, they do not use a headless environment there.

      1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi,

        You can use the offscreen platform plugin for that.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        V 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          You can use the offscreen platform plugin for that.

          V Offline
          V Offline
          Vadi2
          wrote on last edited by
          #3

          Thank you.

          I had troubles running it with the offscreen plugin due to differences in application/library signing, but worked out that the headless issue itself was a red herring: an application can run just fine in Github Actions on macOS, they do not use a headless environment there.

          1 Reply Last reply
          1
          • V Vadi2 has marked this topic as solved on
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by SGaist
            #4

            Can you explain what was the signing issue you had ? It might help others on the future.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            V 1 Reply Last reply
            0
            • SGaistS SGaist

              Can you explain what was the signing issue you had ? It might help others on the future.

              V Offline
              V Offline
              Vadi2
              wrote on last edited by Vadi2
              #5

              Sure, here is the debug output when running with the offscreen plugin - I imagine cocoa was similar: https://sprunge.us/LE0PNl

              I ended up 'fixing' it by stripping the signature off my application, which is OK to do as this binary won't leave the CI environment:

              sudo codesign --remove-signature <.app here>
              
              SGaistS 1 Reply Last reply
              0
              • V Vadi2

                Sure, here is the debug output when running with the offscreen plugin - I imagine cocoa was similar: https://sprunge.us/LE0PNl

                I ended up 'fixing' it by stripping the signature off my application, which is OK to do as this binary won't leave the CI environment:

                sudo codesign --remove-signature <.app here>
                
                SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #6

                Ok, I am surprised by that error. Thanks for sharing !

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                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