graalvmXX-ce: extract common config
This commit is contained in:
parent
4b4d3759e9
commit
440d4f9ff7
1 changed files with 30 additions and 46 deletions
|
@ -9,13 +9,6 @@ let
|
||||||
inherit Foundation;
|
inherit Foundation;
|
||||||
};
|
};
|
||||||
|
|
||||||
commonProducts = [
|
|
||||||
"graalvm-ce"
|
|
||||||
"native-image-installable-svm"
|
|
||||||
"ruby-installable-svm"
|
|
||||||
"wasm-installable-svm"
|
|
||||||
];
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Looks a bit ugly but makes version update in the update script using sed
|
Looks a bit ugly but makes version update in the update script using sed
|
||||||
much easier
|
much easier
|
||||||
|
@ -25,35 +18,45 @@ let
|
||||||
graalvm11-ce-dev-version = "22.2.0-dev-20220331_1955";
|
graalvm11-ce-dev-version = "22.2.0-dev-20220331_1955";
|
||||||
graalvm17-ce-dev-version = "22.2.0-dev-20220331_1955";
|
graalvm17-ce-dev-version = "22.2.0-dev-20220331_1955";
|
||||||
|
|
||||||
|
commonProducts = [
|
||||||
|
"graalvm-ce"
|
||||||
|
"native-image-installable-svm"
|
||||||
|
"ruby-installable-svm"
|
||||||
|
"wasm-installable-svm"
|
||||||
|
];
|
||||||
|
|
||||||
|
baseConfig = {
|
||||||
|
x86_64-darwin = {
|
||||||
|
arch = "darwin-amd64";
|
||||||
|
products = commonProducts ++ [ "python-installable-svm" ];
|
||||||
|
version = graalvm17-ce-release-version;
|
||||||
|
};
|
||||||
|
x86_64-linux = {
|
||||||
|
arch = "linux-amd64";
|
||||||
|
products = commonProducts ++ [ "python-installable-svm" ];
|
||||||
|
version = graalvm17-ce-release-version;
|
||||||
|
};
|
||||||
|
aarch64-darwin = {
|
||||||
|
arch = "darwin-aarch64";
|
||||||
|
products = [
|
||||||
|
"graalvm-ce"
|
||||||
|
"native-image-installable-svm"
|
||||||
|
];
|
||||||
|
version = graalvm17-ce-dev-version;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
inherit mkGraal;
|
inherit mkGraal;
|
||||||
|
|
||||||
graalvm11-ce = mkGraal rec {
|
graalvm11-ce = mkGraal rec {
|
||||||
config = {
|
config = baseConfig // {
|
||||||
x86_64-darwin = {
|
|
||||||
arch = "darwin-amd64";
|
|
||||||
products = commonProducts ++ [ "python-installable-svm" ];
|
|
||||||
version = graalvm11-ce-release-version;
|
|
||||||
};
|
|
||||||
x86_64-linux = {
|
|
||||||
arch = "linux-amd64";
|
|
||||||
products = commonProducts ++ [ "python-installable-svm" ];
|
|
||||||
version = graalvm11-ce-release-version;
|
|
||||||
};
|
|
||||||
aarch64-linux = {
|
aarch64-linux = {
|
||||||
arch = "linux-aarch64";
|
arch = "linux-aarch64";
|
||||||
products = commonProducts;
|
products = commonProducts;
|
||||||
version = graalvm11-ce-release-version;
|
version = graalvm11-ce-release-version;
|
||||||
};
|
};
|
||||||
aarch64-darwin = {
|
|
||||||
arch = "darwin-aarch64";
|
|
||||||
products = [
|
|
||||||
"graalvm-ce"
|
|
||||||
"native-image-installable-svm"
|
|
||||||
];
|
|
||||||
version = graalvm11-ce-dev-version;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
javaVersion = "11";
|
javaVersion = "11";
|
||||||
platforms = builtins.attrNames config;
|
platforms = builtins.attrNames config;
|
||||||
|
@ -65,26 +68,7 @@ in
|
||||||
# directory"/tmp/SVM-4194439592488143713"): error=0, Failed to exec spawn
|
# directory"/tmp/SVM-4194439592488143713"): error=0, Failed to exec spawn
|
||||||
# helper: pid: 19865, exit value: 1"
|
# helper: pid: 19865, exit value: 1"
|
||||||
graalvm17-ce = mkGraal rec {
|
graalvm17-ce = mkGraal rec {
|
||||||
config = {
|
config = baseConfig;
|
||||||
x86_64-darwin = {
|
|
||||||
arch = "darwin-amd64";
|
|
||||||
products = commonProducts ++ [ "python-installable-svm" ];
|
|
||||||
version = graalvm17-ce-release-version;
|
|
||||||
};
|
|
||||||
x86_64-linux = {
|
|
||||||
arch = "linux-amd64";
|
|
||||||
products = commonProducts ++ [ "python-installable-svm" ];
|
|
||||||
version = graalvm17-ce-release-version;
|
|
||||||
};
|
|
||||||
aarch64-darwin = {
|
|
||||||
arch = "darwin-aarch64";
|
|
||||||
products = [
|
|
||||||
"graalvm-ce"
|
|
||||||
"native-image-installable-svm"
|
|
||||||
];
|
|
||||||
version = graalvm17-ce-dev-version;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
javaVersion = "17";
|
javaVersion = "17";
|
||||||
platforms = builtins.attrNames config;
|
platforms = builtins.attrNames config;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue