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 03e55f3 commit c0a2ca7
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
10 changes: 10 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add support for NetBSD 10.0
- Add support for NetBSD ARM64 ([#55](https://github.com/cross-platform-actions/action/issues/55))

### 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.

## [0.23.0] - 2024-02-18
### Added
- Add support for FreeBSD 14.0 ([#74](https://github.com/cross-platform-actions/action/issues/74))
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. Please use the ' +
'`ubuntu-latest` runner instead.'
)
}

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

0 comments on commit c0a2ca7

Please sign in to comment.