|
@@ -784,36 +784,49 @@ class RunCi {
|
|
|
Sys.getEnv("HXBUILDS_AWS_SECRET_ACCESS_KEY") != null &&
|
|
|
Sys.getEnv("TRAVIS_PULL_REQUEST") != "true"
|
|
|
) {
|
|
|
- if (ci == TravisCI) {
|
|
|
- if (systemName == 'Linux') {
|
|
|
- // source
|
|
|
- for (file in sys.FileSystem.readDirectory('out')) {
|
|
|
- if (file.startsWith('haxe') && file.endsWith('_src.tar.gz')) {
|
|
|
- submitToS3("source", 'out/$file');
|
|
|
- break;
|
|
|
+ switch (ci) {
|
|
|
+ case null:
|
|
|
+ trace('Not deploying nightlies (not in CI)');
|
|
|
+ case TravisCI:
|
|
|
+ if (systemName == 'Linux') {
|
|
|
+ // source
|
|
|
+ for (file in sys.FileSystem.readDirectory('out')) {
|
|
|
+ if (file.startsWith('haxe') && file.endsWith('_src.tar.gz')) {
|
|
|
+ submitToS3("source", 'out/$file');
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- for (file in sys.FileSystem.readDirectory('out')) {
|
|
|
- if (file.startsWith('haxe')) {
|
|
|
- if (file.endsWith('_bin.tar.gz')) {
|
|
|
- var name = systemName == "Linux" ? 'linux64' : 'mac';
|
|
|
- submitToS3(name, 'out/$file');
|
|
|
- } else if (file.endsWith('_installer.tar.gz')) {
|
|
|
- submitToS3('mac-installer', 'out/$file');
|
|
|
+ for (file in sys.FileSystem.readDirectory('out')) {
|
|
|
+ if (file.startsWith('haxe')) {
|
|
|
+ if (file.endsWith('_bin.tar.gz')) {
|
|
|
+ var name = systemName == "Linux" ? 'linux64' : 'mac';
|
|
|
+ submitToS3(name, 'out/$file');
|
|
|
+ } else if (file.endsWith('_installer.tar.gz')) {
|
|
|
+ submitToS3('mac-installer', 'out/$file');
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- } else {
|
|
|
- for (file in sys.FileSystem.readDirectory('out')) {
|
|
|
- if (file.startsWith('haxe')) {
|
|
|
- if (file.endsWith('_bin.zip')) {
|
|
|
- submitToS3('windows', 'out/$file');
|
|
|
- } else if (file.endsWith('_installer.zip')) {
|
|
|
- submitToS3('windows-installer', 'out/$file');
|
|
|
+ case AppVeyor:
|
|
|
+ var kind = switch (Sys.getEnv("ARCH")) {
|
|
|
+ case null:
|
|
|
+ throw "ARCH is not set";
|
|
|
+ case "32":
|
|
|
+ "windows";
|
|
|
+ case "64":
|
|
|
+ "windows64";
|
|
|
+ case _:
|
|
|
+ throw "unknown ARCH";
|
|
|
+ }
|
|
|
+ for (file in sys.FileSystem.readDirectory('out')) {
|
|
|
+ if (file.startsWith('haxe')) {
|
|
|
+ if (file.endsWith('_bin.zip')) {
|
|
|
+ submitToS3(kind, 'out/$file');
|
|
|
+ } else if (file.endsWith('_installer.zip')) {
|
|
|
+ submitToS3('${kind}-installer', 'out/$file');
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
}
|
|
|
} else {
|
|
|
trace('Not deploying nightlies');
|