Skip to content

Commit 59aafb8

Browse files
committed
Add support for macos-11.0
1 parent ad1ebae commit 59aafb8

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
os: [ ubuntu-16.04, ubuntu-18.04, ubuntu-20.04, macos-10.15, windows-2016, windows-2019 ]
18+
os: [ ubuntu-16.04, ubuntu-18.04, ubuntu-20.04, macos-10.15, macos-11.0, windows-2016, windows-2019 ]
1919
# Use various version syntax here for testing
2020
ruby: [ 2.1, 2.2, 2.3, 2.4, 2.5, 2.6.6, 2.7, ruby-head, debug, jruby-9.1, jruby, jruby-head, truffleruby, truffleruby-head ]
2121
include:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The action works for all [GitHub-hosted runners](https://help.github.com/en/acti
3939
| Operating System | Recommended | Other Supported Versions |
4040
| ----------- | -------- | -------- |
4141
| Ubuntu | `ubuntu-latest` (= `ubuntu-18.04`) | `ubuntu-20.04`, `ubuntu-16.04` |
42-
| macOS | `macos-latest` (= `macos-10.15`) | |
42+
| macOS | `macos-latest` (= `macos-10.15`) | `macos-11.0` |
4343
| Windows | `windows-latest` (= `windows-2019`) | `windows-2016` |
4444

4545
The prebuilt releases are generated by [ruby-builder](https://github.com/ruby/ruby-builder)

common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ export function getVirtualEnvironmentName() {
5252
return `ubuntu-${match[1]}.04`
5353
}
5454

55-
match = imageOS.match(/^macos(\d{2})(\d+)/) // e.g. macos1015
55+
match = imageOS.match(/^macos(\d{2})(\d+)?/) // e.g. macos1015, macos11
5656
if (match) {
57-
return `macos-${match[1]}.${match[2]}`
57+
return `macos-${match[1]}.${match[2] || '0'}`
5858
}
5959

6060
match = imageOS.match(/^win(\d+)/) // e.g. win19

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)