|
| 1 | +// @ts-check |
| 2 | + |
| 3 | +/** @type {(import("./compile-build-variants").CompileBuildVariantDefinition)[]} */ |
| 4 | +exports.COMPILE_BUILD_VARIANTS = [ |
| 5 | + { |
| 6 | + displayName: "RHEL 7.0 x64", |
| 7 | + runOn: "rhel70-build", |
| 8 | + executableOsId: "linux-x64", |
| 9 | + }, |
| 10 | + { |
| 11 | + displayName: "RHEL 8.0 x64", |
| 12 | + runOn: "rhel80-build", |
| 13 | + id: "linux_x64_rhel8", |
| 14 | + executableOsId: "linux-x64", |
| 15 | + }, |
| 16 | + { |
| 17 | + displayName: "RHEL 7.0 x64", |
| 18 | + runOn: "rhel70-build", |
| 19 | + executableOsId: "linux-x64-openssl11", |
| 20 | + sharedOpenSsl: "openssl11", |
| 21 | + }, |
| 22 | + { |
| 23 | + displayName: "RHEL 8.0 x64", |
| 24 | + runOn: "rhel80-build", |
| 25 | + id: "linux_x64_openssl11_rhel8", |
| 26 | + executableOsId: "linux-x64-openssl11", |
| 27 | + sharedOpenSsl: "openssl11", |
| 28 | + }, |
| 29 | + { |
| 30 | + displayName: "RHEL 7.0 x64", |
| 31 | + runOn: "rhel70-build", |
| 32 | + executableOsId: "linux-x64-openssl3", |
| 33 | + sharedOpenSsl: "openssl3", |
| 34 | + }, |
| 35 | + { |
| 36 | + displayName: "RHEL 8.0 x64", |
| 37 | + runOn: "rhel80-build", |
| 38 | + id: "linux_x64_openssl3_rhel8", |
| 39 | + executableOsId: "linux-x64-openssl3", |
| 40 | + sharedOpenSsl: "openssl3", |
| 41 | + }, |
| 42 | + { |
| 43 | + displayName: "Amazon 2 arm64", |
| 44 | + runOn: "amazon2-arm64-large", |
| 45 | + executableOsId: "linux-arm64", |
| 46 | + }, |
| 47 | + { |
| 48 | + displayName: "Amazon 2 arm64", |
| 49 | + runOn: "amazon2-arm64-large", |
| 50 | + executableOsId: "linux-arm64-openssl11", |
| 51 | + sharedOpenSsl: "openssl11", |
| 52 | + }, |
| 53 | + { |
| 54 | + displayName: "Amazon 2 arm64", |
| 55 | + runOn: "amazon2-arm64-large", |
| 56 | + executableOsId: "linux-arm64-openssl3", |
| 57 | + sharedOpenSsl: "openssl3", |
| 58 | + }, |
| 59 | + { |
| 60 | + displayName: "RHEL 8 PPC", |
| 61 | + runOn: "rhel8-power-small", |
| 62 | + executableOsId: "linux-ppc64le", |
| 63 | + }, |
| 64 | + { |
| 65 | + displayName: "RHEL 7 s390x", |
| 66 | + runOn: "rhel7-zseries-large", |
| 67 | + executableOsId: "linux-s390x", |
| 68 | + }, |
| 69 | + { |
| 70 | + displayName: "MacOS Big Sur", |
| 71 | + id: "darwin", |
| 72 | + runOn: "macos-11", |
| 73 | + executableOsId: "darwin-x64", |
| 74 | + }, |
| 75 | + { |
| 76 | + displayName: "MacOS Big Sur arm64", |
| 77 | + runOn: "macos-11-arm64", |
| 78 | + executableOsId: "darwin-arm64", |
| 79 | + }, |
| 80 | + { |
| 81 | + id: "win32", |
| 82 | + displayName: "Windows VS 2022", |
| 83 | + runOn: "windows-vsCurrent-large", |
| 84 | + executableOsId: "win32", |
| 85 | + }, |
| 86 | +].map((buildVariant) => { |
| 87 | + const { displayName, sharedOpenSsl, id, executableOsId } = buildVariant; |
| 88 | + const formattedDisplayName = [displayName, sharedOpenSsl, "(Build)"] |
| 89 | + .filter((text) => text) |
| 90 | + .join(" "); |
| 91 | + |
| 92 | + return { |
| 93 | + ...buildVariant, |
| 94 | + id, |
| 95 | + displayName: formattedDisplayName, |
| 96 | + name: `build_${id ?? executableOsId.replaceAll("-", "_")}`, |
| 97 | + }; |
| 98 | +}); |
0 commit comments