2020-02-19 21:16:40 -06:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"strings"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (i *Input) newPlatforms() map[string]string {
|
|
|
|
platforms := map[string]string{
|
2020-02-20 21:43:20 -06:00
|
|
|
"ubuntu-latest": "node:12.6-buster-slim",
|
2021-01-12 00:22:53 -06:00
|
|
|
"ubuntu-20.04": "node:12.6-buster-slim",
|
2020-02-20 21:43:20 -06:00
|
|
|
"ubuntu-18.04": "node:12.6-buster-slim",
|
|
|
|
"ubuntu-16.04": "node:12.6-stretch-slim",
|
2020-02-19 21:16:40 -06:00
|
|
|
"windows-latest": "",
|
|
|
|
"windows-2019": "",
|
|
|
|
"macos-latest": "",
|
|
|
|
"macos-10.15": "",
|
|
|
|
}
|
|
|
|
|
|
|
|
for _, p := range i.platforms {
|
|
|
|
pParts := strings.Split(p, "=")
|
|
|
|
if len(pParts) == 2 {
|
|
|
|
platforms[pParts[0]] = pParts[1]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return platforms
|
|
|
|
}
|