cross-platform-actions / action

Cross-platform GitHub action
MIT License
128 stars 19 forks source link

Support hardware accelerated virtualization on Linux runners #47

Closed jacob-carlborg closed 6 months ago

jacob-carlborg commented 1 year ago

The GitHub hosted larger Linux runners recently got support for hardware accelerated nested virtualization. See https://github.blog/changelog/2023-02-23-hardware-accelerated-android-virtualization-on-actions-windows-and-linux-larger-hosted-runners. CPA should be able to detect when support for hardware accelerated nested virtualization is available and enable it where possible.

manxorist commented 6 months ago

I am seeing speedups of ~2x and even up to 8x in some cases from switching VM host from macOS to Ubuntu. This is great.

jacob-carlborg commented 6 months ago

I am seeing speedups of ~2x and even up to 8x in some cases from switching VM host from macOS to Ubuntu. This is great.

Awesome. It's not officially announced by GitHub, but so far it's always available 🤞.

Xottab-DUTY commented 6 months ago

Thaanks man!! After switching to Linux runners instead of macOS, we now have pure identical build times with FreeBSD compared to Ubuntu, and just a bit slower with OpenBSD. And the runs are stable now, no random failures.

jacob-carlborg-apoex commented 6 months ago

Thaanks man!! After switching to Linux runners instead of macOS, we now have pure identical build times with FreeBSD compared to Ubuntu, and just a bit slower with OpenBSD. And the runs are stable now, no random failures.

That great to hear, thanks.