From 7d959992bf67cd2ede0456320a04a3d4837e181b Mon Sep 17 00:00:00 2001 From: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com> Date: Wed, 1 Mar 2023 22:50:09 +1100 Subject: [PATCH 1/2] Update example to remove unsupported versions --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6184b9b81..a57cfb2f0 100644 --- a/README.md +++ b/README.md @@ -252,7 +252,7 @@ This action might work with [self-hosted runners](https://docs.github.com/en/act if the [Runner Image](https://github.com/actions/runner-images) is very similar to the ones used by GitHub runners. Notably: * Make sure to use the same operating system and version. -* Set the environment variable `ImageOS` on the runner to the corresponding value on GitHub-hosted runners (e.g. `ubuntu18`/`macos1015`/`win19`). This is necessary to detect the operating system and version. +* Set the environment variable `ImageOS` on the runner to the corresponding value on GitHub-hosted runners (e.g. `ubuntu22`/`macos12`/`win22`). This is necessary to detect the operating system and version. * Make sure to use the same version of libssl. * Make sure that the operating system has `libyaml-0` and [`libgmp`](https://stackoverflow.com/questions/26555902/ruby-v-dyld-library-not-loaded-usr-local-lib-libgmp-10-dylib) installed * The default tool cache directory (`/opt/hostedtoolcache` on Linux, `/Users/runner/hostedtoolcache` on macOS, From aa2c3007d6587e2ea6ebd8b64394df7076c02e1b Mon Sep 17 00:00:00 2001 From: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com> Date: Wed, 1 Mar 2023 22:53:22 +1100 Subject: [PATCH 2/2] Also update comments --- common.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common.js b/common.js index 92843aa23..658737368 100644 --- a/common.js +++ b/common.js @@ -171,12 +171,12 @@ export const supportedPlatforms = [ export function getVirtualEnvironmentName() { const imageOS = getImageOS() - let match = imageOS.match(/^ubuntu(\d+)/) // e.g. ubuntu18 + let match = imageOS.match(/^ubuntu(\d+)/) // e.g. ubuntu22 if (match) { return `ubuntu-${match[1]}.04` } - match = imageOS.match(/^macos(\d{2})(\d+)?/) // e.g. macos1015, macos11 + match = imageOS.match(/^macos(\d{2})(\d+)?/) // e.g. macos12 if (match) { if (match[2]) { return `macos-${match[1]}.${match[2]}` @@ -185,7 +185,7 @@ export function getVirtualEnvironmentName() { } } - match = imageOS.match(/^win(\d+)/) // e.g. win19 + match = imageOS.match(/^win(\d+)/) // e.g. win22 if (match) { return `windows-20${match[1]}` }