Skip to content

Commit

Permalink
Deprecate support for macOS runners
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-carlborg committed Jun 20, 2024
1 parent aefd8a8 commit a8dd371
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
9 changes: 9 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add support for FreeBSD 14.1

### Deprecated
- Support for macOS runners has been deprecated and will be removed in a future
release. The reason for using macOS runners in the past has been because of
the support for hardware accelerated nested virtualization using the
Hypervisor framework. Since the creation of this action, the Ubuntu runners
have been upgraded with better performance and added support for hardware
accelerated nested virtualization using KVM. QEMU is also more stable when
using KVM compared to the Hypervisor framework. Please use the
`ubuntu-latest` runner instead.

- The Xhyve hypervisor has been deprecated and will be removed in a future
release. QEMU will be the only available hypervisor. The reason being
maintenance of the Xhyve hypervisor seemed to have stopped. It's also
Expand Down
6 changes: 6 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions src/host.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import * as process from 'process'

import * as core from '@actions/core'

import HostQemu from './host_qemu'
import * as hypervisor from './hypervisor'
import * as qemu from './qemu_vm'
Expand Down Expand Up @@ -49,6 +51,15 @@ namespace Module {
}

class MacOs extends Host {
constructor() {
super()

core.warning(
'Support for macOS runners has been deprecated and will be removed in' +
'a future update. Please use the `ubuntu-latest` runner instead.'
)
}

get vmModule(): typeof xhyve | typeof qemu {
return xhyve
}
Expand Down

0 comments on commit a8dd371

Please sign in to comment.