fix(cli): created template missing macOS testing (#1659)

This commit is contained in:
LongYinan 2023-07-18 10:49:20 +08:00 committed by GitHub
parent 6d62b3f714
commit 4e0c9b14e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 307 additions and 302 deletions

View file

@ -63,10 +63,16 @@ export const createGithubActionsCIYml = (
if (!enableWindowsX86 && !enableMacOSX86) {
delete fullTemplate.jobs[TEST_MACOS_WINDOWS]
} else {
const filterTarget = enableWindowsX86 ? 'macos-latest' : 'windows-latest'
const filterTargets = new Set<string>()
if (enableWindowsX86) {
filterTargets.add('windows-latest')
}
if (enableMacOSUni || enableMacOSX86) {
filterTargets.add('macos-latest')
}
fullTemplate.jobs[TEST_MACOS_WINDOWS].strategy.matrix.settings =
fullTemplate.jobs[TEST_MACOS_WINDOWS].strategy.matrix.settings.filter(
({ host }: { host: string; target: string }) => host !== filterTarget,
({ host }: { host: string; target: string }) => filterTargets.has(host),
)
requiredSteps.push(TEST_MACOS_WINDOWS)

View file

@ -1,393 +1,392 @@
module.exports.platformArchTriples = {
"darwin": {
"arm64": [
darwin: {
arm64: [
{
"triple": "aarch64-apple-darwin",
"platformArchABI": "darwin-arm64",
"platform": "darwin",
"arch": "arm64",
"abi": null
}
triple: 'aarch64-apple-darwin',
platformArchABI: 'darwin-arm64',
platform: 'darwin',
arch: 'arm64',
abi: null,
},
],
"x64": [
x64: [
{
"triple": "x86_64-apple-darwin",
"platformArchABI": "darwin-x64",
"platform": "darwin",
"arch": "x64",
"abi": null
}
]
triple: 'x86_64-apple-darwin',
platformArchABI: 'darwin-x64',
platform: 'darwin',
arch: 'x64',
abi: null,
},
"ios": {
"arm64": [
{
"triple": "aarch64-apple-ios",
"platformArchABI": "ios-arm64",
"platform": "ios",
"arch": "arm64",
"abi": null
}
],
"x64": [
{
"triple": "x86_64-apple-ios",
"platformArchABI": "ios-x64",
"platform": "ios",
"arch": "x64",
"abi": null
}
]
},
"android": {
"arm64": [
ios: {
arm64: [
{
"triple": "aarch64-linux-android",
"platformArchABI": "android-arm64",
"platform": "android",
"arch": "arm64",
"abi": null
}
triple: 'aarch64-apple-ios',
platformArchABI: 'ios-arm64',
platform: 'ios',
arch: 'arm64',
abi: null,
},
],
"arm": [
x64: [
{
"triple": "armv7-linux-androideabi",
"platformArchABI": "android-arm-eabi",
"platform": "android",
"arch": "arm",
"abi": "eabi"
}
triple: 'x86_64-apple-ios',
platformArchABI: 'ios-x64',
platform: 'ios',
arch: 'x64',
abi: null,
},
],
"ia32": [
},
android: {
arm64: [
{
"triple": "i686-linux-android",
"platformArchABI": "android-ia32",
"platform": "android",
"arch": "ia32",
"abi": null
}
triple: 'aarch64-linux-android',
platformArchABI: 'android-arm64',
platform: 'android',
arch: 'arm64',
abi: null,
},
],
"x64": [
arm: [
{
"triple": "x86_64-linux-android",
"platformArchABI": "android-x64",
"platform": "android",
"arch": "x64",
"abi": null
}
]
triple: 'armv7-linux-androideabi',
platformArchABI: 'android-arm-eabi',
platform: 'android',
arch: 'arm',
abi: 'eabi',
},
"win32": {
"arm64": [
{
"triple": "aarch64-pc-windows-msvc",
"platformArchABI": "win32-arm64-msvc",
"platform": "win32",
"arch": "arm64",
"abi": "msvc"
}
],
"ia32": [
ia32: [
{
"triple": "i686-pc-windows-gnu",
"platformArchABI": "win32-ia32-gnu",
"platform": "win32",
"arch": "ia32",
"abi": "gnu"
triple: 'i686-linux-android',
platformArchABI: 'android-ia32',
platform: 'android',
arch: 'ia32',
abi: null,
},
{
"triple": "i686-pc-windows-msvc",
"platformArchABI": "win32-ia32-msvc",
"platform": "win32",
"arch": "ia32",
"abi": "msvc"
}
],
"x64": [
x64: [
{
"triple": "x86_64-pc-windows-gnu",
"platformArchABI": "win32-x64-gnu",
"platform": "win32",
"arch": "x64",
"abi": "gnu"
triple: 'x86_64-linux-android',
platformArchABI: 'android-x64',
platform: 'android',
arch: 'x64',
abi: null,
},
{
"triple": "x86_64-pc-windows-msvc",
"platformArchABI": "win32-x64-msvc",
"platform": "win32",
"arch": "x64",
"abi": "msvc"
}
]
},
"linux": {
"arm64": [
{
"triple": "aarch64-unknown-linux-gnu",
"platformArchABI": "linux-arm64-gnu",
"platform": "linux",
"arch": "arm64",
"abi": "gnu"
},
{
"triple": "aarch64-unknown-linux-musl",
"platformArchABI": "linux-arm64-musl",
"platform": "linux",
"arch": "arm64",
"abi": "musl"
}
],
"arm": [
{
"triple": "arm-unknown-linux-gnueabi",
"platformArchABI": "linux-arm-gnu",
"platform": "linux",
"arch": "arm",
"abi": "gnu"
},
win32: {
arm64: [
{
"triple": "arm-unknown-linux-gnueabihf",
"platformArchABI": "linux-arm-gnueabihf",
"platform": "linux",
"arch": "arm",
"abi": "gnueabihf"
triple: 'aarch64-pc-windows-msvc',
platformArchABI: 'win32-arm64-msvc',
platform: 'win32',
arch: 'arm64',
abi: 'msvc',
},
{
"triple": "arm-unknown-linux-musleabi",
"platformArchABI": "linux-arm-musl",
"platform": "linux",
"arch": "arm",
"abi": "musl"
},
{
"triple": "arm-unknown-linux-musleabihf",
"platformArchABI": "linux-arm-musleabihf",
"platform": "linux",
"arch": "arm",
"abi": "musleabihf"
},
{
"triple": "armv7-unknown-linux-gnueabi",
"platformArchABI": "linux-arm-gnu",
"platform": "linux",
"arch": "arm",
"abi": "gnu"
},
{
"triple": "armv7-unknown-linux-gnueabihf",
"platformArchABI": "linux-arm-gnueabihf",
"platform": "linux",
"arch": "arm",
"abi": "gnueabihf"
},
{
"triple": "armv7-unknown-linux-musleabi",
"platformArchABI": "linux-arm-musl",
"platform": "linux",
"arch": "arm",
"abi": "musl"
},
{
"triple": "armv7-unknown-linux-musleabihf",
"platformArchABI": "linux-arm-musleabihf",
"platform": "linux",
"arch": "arm",
"abi": "musleabihf"
}
],
"armv5te": [
ia32: [
{
"triple": "armv5te-unknown-linux-gnueabi",
"platformArchABI": "linux-armv5te-gnu",
"platform": "linux",
"arch": "armv5te",
"abi": "gnu"
triple: 'i686-pc-windows-gnu',
platformArchABI: 'win32-ia32-gnu',
platform: 'win32',
arch: 'ia32',
abi: 'gnu',
},
{
"triple": "armv5te-unknown-linux-musleabi",
"platformArchABI": "linux-armv5te-musl",
"platform": "linux",
"arch": "armv5te",
"abi": "musl"
}
triple: 'i686-pc-windows-msvc',
platformArchABI: 'win32-ia32-msvc',
platform: 'win32',
arch: 'ia32',
abi: 'msvc',
},
],
"ia32": [
x64: [
{
"triple": "i686-unknown-linux-gnu",
"platformArchABI": "linux-ia32-gnu",
"platform": "linux",
"arch": "ia32",
"abi": "gnu"
triple: 'x86_64-pc-windows-gnu',
platformArchABI: 'win32-x64-gnu',
platform: 'win32',
arch: 'x64',
abi: 'gnu',
},
{
"triple": "i686-unknown-linux-musl",
"platformArchABI": "linux-ia32-musl",
"platform": "linux",
"arch": "ia32",
"abi": "musl"
}
triple: 'x86_64-pc-windows-msvc',
platformArchABI: 'win32-x64-msvc',
platform: 'win32',
arch: 'x64',
abi: 'msvc',
},
],
"mips": [
},
linux: {
arm64: [
{
"triple": "mips-unknown-linux-gnu",
"platformArchABI": "linux-mips-gnu",
"platform": "linux",
"arch": "mips",
"abi": "gnu"
triple: 'aarch64-unknown-linux-gnu',
platformArchABI: 'linux-arm64-gnu',
platform: 'linux',
arch: 'arm64',
abi: 'gnu',
},
{
"triple": "mips-unknown-linux-musl",
"platformArchABI": "linux-mips-musl",
"platform": "linux",
"arch": "mips",
"abi": "musl"
}
triple: 'aarch64-unknown-linux-musl',
platformArchABI: 'linux-arm64-musl',
platform: 'linux',
arch: 'arm64',
abi: 'musl',
},
],
"mips64": [
arm: [
{
"triple": "mips64-unknown-linux-gnuabi64",
"platformArchABI": "linux-mips64-gnuabi64",
"platform": "linux",
"arch": "mips64",
"abi": "gnuabi64"
triple: 'arm-unknown-linux-gnueabi',
platformArchABI: 'linux-arm-gnu',
platform: 'linux',
arch: 'arm',
abi: 'gnu',
},
{
"triple": "mips64-unknown-linux-muslabi64",
"platformArchABI": "linux-mips64-muslabi64",
"platform": "linux",
"arch": "mips64",
"abi": "muslabi64"
}
],
"mips64el": [
{
"triple": "mips64el-unknown-linux-gnuabi64",
"platformArchABI": "linux-mips64el-gnuabi64",
"platform": "linux",
"arch": "mips64el",
"abi": "gnuabi64"
triple: 'arm-unknown-linux-gnueabihf',
platformArchABI: 'linux-arm-gnueabihf',
platform: 'linux',
arch: 'arm',
abi: 'gnueabihf',
},
{
"triple": "mips64el-unknown-linux-muslabi64",
"platformArchABI": "linux-mips64el-muslabi64",
"platform": "linux",
"arch": "mips64el",
"abi": "muslabi64"
}
],
"mipsel": [
{
"triple": "mipsel-unknown-linux-gnu",
"platformArchABI": "linux-mipsel-gnu",
"platform": "linux",
"arch": "mipsel",
"abi": "gnu"
triple: 'arm-unknown-linux-musleabi',
platformArchABI: 'linux-arm-musl',
platform: 'linux',
arch: 'arm',
abi: 'musl',
},
{
"triple": "mipsel-unknown-linux-musl",
"platformArchABI": "linux-mipsel-musl",
"platform": "linux",
"arch": "mipsel",
"abi": "musl"
}
],
"powerpc": [
{
"triple": "powerpc-unknown-linux-gnu",
"platformArchABI": "linux-powerpc-gnu",
"platform": "linux",
"arch": "powerpc",
"abi": "gnu"
}
],
"powerpc64": [
{
"triple": "powerpc64-unknown-linux-gnu",
"platformArchABI": "linux-powerpc64-gnu",
"platform": "linux",
"arch": "powerpc64",
"abi": "gnu"
}
],
"powerpc64le": [
{
"triple": "powerpc64le-unknown-linux-gnu",
"platformArchABI": "linux-powerpc64le-gnu",
"platform": "linux",
"arch": "powerpc64le",
"abi": "gnu"
}
],
"riscv64": [
{
"triple": "riscv64gc-unknown-linux-gnu",
"platformArchABI": "linux-riscv64-gnu",
"platform": "linux",
"arch": "riscv64",
"abi": "gnu"
}
],
"s390x": [
{
"triple": "s390x-unknown-linux-gnu",
"platformArchABI": "linux-s390x-gnu",
"platform": "linux",
"arch": "s390x",
"abi": "gnu"
}
],
"sparc64": [
{
"triple": "sparc64-unknown-linux-gnu",
"platformArchABI": "linux-sparc64-gnu",
"platform": "linux",
"arch": "sparc64",
"abi": "gnu"
}
],
"x64": [
{
"triple": "x86_64-unknown-linux-gnu",
"platformArchABI": "linux-x64-gnu",
"platform": "linux",
"arch": "x64",
"abi": "gnu"
triple: 'arm-unknown-linux-musleabihf',
platformArchABI: 'linux-arm-musleabihf',
platform: 'linux',
arch: 'arm',
abi: 'musleabihf',
},
{
"triple": "x86_64-unknown-linux-gnux32",
"platformArchABI": "linux-x64-gnux32",
"platform": "linux",
"arch": "x64",
"abi": "gnux32"
triple: 'armv7-unknown-linux-gnueabi',
platformArchABI: 'linux-arm-gnu',
platform: 'linux',
arch: 'arm',
abi: 'gnu',
},
{
"triple": "x86_64-unknown-linux-musl",
"platformArchABI": "linux-x64-musl",
"platform": "linux",
"arch": "x64",
"abi": "musl"
}
]
triple: 'armv7-unknown-linux-gnueabihf',
platformArchABI: 'linux-arm-gnueabihf',
platform: 'linux',
arch: 'arm',
abi: 'gnueabihf',
},
"freebsd": {
"ia32": [
{
"triple": "i686-unknown-freebsd",
"platformArchABI": "freebsd-ia32",
"platform": "freebsd",
"arch": "ia32",
"abi": null
}
triple: 'armv7-unknown-linux-musleabi',
platformArchABI: 'linux-arm-musl',
platform: 'linux',
arch: 'arm',
abi: 'musl',
},
{
triple: 'armv7-unknown-linux-musleabihf',
platformArchABI: 'linux-arm-musleabihf',
platform: 'linux',
arch: 'arm',
abi: 'musleabihf',
},
],
"x64": [
armv5te: [
{
"triple": "x86_64-unknown-freebsd",
"platformArchABI": "freebsd-x64",
"platform": "freebsd",
"arch": "x64",
"abi": null
}
]
}
triple: 'armv5te-unknown-linux-gnueabi',
platformArchABI: 'linux-armv5te-gnu',
platform: 'linux',
arch: 'armv5te',
abi: 'gnu',
},
{
triple: 'armv5te-unknown-linux-musleabi',
platformArchABI: 'linux-armv5te-musl',
platform: 'linux',
arch: 'armv5te',
abi: 'musl',
},
],
ia32: [
{
triple: 'i686-unknown-linux-gnu',
platformArchABI: 'linux-ia32-gnu',
platform: 'linux',
arch: 'ia32',
abi: 'gnu',
},
{
triple: 'i686-unknown-linux-musl',
platformArchABI: 'linux-ia32-musl',
platform: 'linux',
arch: 'ia32',
abi: 'musl',
},
],
mips: [
{
triple: 'mips-unknown-linux-gnu',
platformArchABI: 'linux-mips-gnu',
platform: 'linux',
arch: 'mips',
abi: 'gnu',
},
{
triple: 'mips-unknown-linux-musl',
platformArchABI: 'linux-mips-musl',
platform: 'linux',
arch: 'mips',
abi: 'musl',
},
],
mips64: [
{
triple: 'mips64-unknown-linux-gnuabi64',
platformArchABI: 'linux-mips64-gnuabi64',
platform: 'linux',
arch: 'mips64',
abi: 'gnuabi64',
},
{
triple: 'mips64-unknown-linux-muslabi64',
platformArchABI: 'linux-mips64-muslabi64',
platform: 'linux',
arch: 'mips64',
abi: 'muslabi64',
},
],
mips64el: [
{
triple: 'mips64el-unknown-linux-gnuabi64',
platformArchABI: 'linux-mips64el-gnuabi64',
platform: 'linux',
arch: 'mips64el',
abi: 'gnuabi64',
},
{
triple: 'mips64el-unknown-linux-muslabi64',
platformArchABI: 'linux-mips64el-muslabi64',
platform: 'linux',
arch: 'mips64el',
abi: 'muslabi64',
},
],
mipsel: [
{
triple: 'mipsel-unknown-linux-gnu',
platformArchABI: 'linux-mipsel-gnu',
platform: 'linux',
arch: 'mipsel',
abi: 'gnu',
},
{
triple: 'mipsel-unknown-linux-musl',
platformArchABI: 'linux-mipsel-musl',
platform: 'linux',
arch: 'mipsel',
abi: 'musl',
},
],
powerpc: [
{
triple: 'powerpc-unknown-linux-gnu',
platformArchABI: 'linux-powerpc-gnu',
platform: 'linux',
arch: 'powerpc',
abi: 'gnu',
},
],
powerpc64: [
{
triple: 'powerpc64-unknown-linux-gnu',
platformArchABI: 'linux-powerpc64-gnu',
platform: 'linux',
arch: 'powerpc64',
abi: 'gnu',
},
],
powerpc64le: [
{
triple: 'powerpc64le-unknown-linux-gnu',
platformArchABI: 'linux-powerpc64le-gnu',
platform: 'linux',
arch: 'powerpc64le',
abi: 'gnu',
},
],
riscv64: [
{
triple: 'riscv64gc-unknown-linux-gnu',
platformArchABI: 'linux-riscv64-gnu',
platform: 'linux',
arch: 'riscv64',
abi: 'gnu',
},
],
s390x: [
{
triple: 's390x-unknown-linux-gnu',
platformArchABI: 'linux-s390x-gnu',
platform: 'linux',
arch: 's390x',
abi: 'gnu',
},
],
sparc64: [
{
triple: 'sparc64-unknown-linux-gnu',
platformArchABI: 'linux-sparc64-gnu',
platform: 'linux',
arch: 'sparc64',
abi: 'gnu',
},
],
x64: [
{
triple: 'x86_64-unknown-linux-gnu',
platformArchABI: 'linux-x64-gnu',
platform: 'linux',
arch: 'x64',
abi: 'gnu',
},
{
triple: 'x86_64-unknown-linux-gnux32',
platformArchABI: 'linux-x64-gnux32',
platform: 'linux',
arch: 'x64',
abi: 'gnux32',
},
{
triple: 'x86_64-unknown-linux-musl',
platformArchABI: 'linux-x64-musl',
platform: 'linux',
arch: 'x64',
abi: 'musl',
},
],
},
freebsd: {
ia32: [
{
triple: 'i686-unknown-freebsd',
platformArchABI: 'freebsd-ia32',
platform: 'freebsd',
arch: 'ia32',
abi: null,
},
],
x64: [
{
triple: 'x86_64-unknown-freebsd',
platformArchABI: 'freebsd-x64',
platform: 'freebsd',
arch: 'x64',
abi: null,
},
],
},
}