jurplel / install-qt-action

Install Qt on your Github Actions workflows with just one simple action
MIT License
446 stars 78 forks source link

Problem with macos-latest #238

Closed 53845714nF closed 2 months ago

53845714nF commented 2 months ago

I work on the Spix Project and this use your action.

I get the following warning: ld: warning: ignoring file '/Users/runner/work/spix/Qt/5.15.2/clang_64/lib/QtCore.framework/Versions/5/QtCore': found architecture 'x86_64', required architecture 'arm64'

It seems that the runner is on arm64 and the action download the x86_64 version of qt. If I use macos-13 it works. Is there any suggestion or workaround?

jurplel commented 2 months ago

I don't think Qt 5.15.2 is available in arm64 from the official distributions. I checked and 6.5.0 is retrieved by aqtinstall as a universal binary.

jdpurcell commented 2 months ago

If you don't need ARM binaries you could pass -DCMAKE_OSX_ARCHITECTURES=x86_64 to cmake.

53845714nF commented 2 months ago

I don't think Qt 5.15.2 is available in arm64 from the official distributions. I checked and 6.5.0 is retrieved by aqtinstall as a universal binary.

So should I leave it at macos-13 with Qt5? I also have another question of understanding: why are you looking in apt for packages for a macOS?

53845714nF commented 2 months ago

If you don't need ARM binaries you could pass -DCMAKE_OSX_ARCHITECTURES=x86_64 to cmake.

As far I understand, the macos-latest is always an arm64 machine. Or is it possible to start it as x86?

53845714nF commented 2 months ago

I think it helps me a lot.