@@ -19,38 +19,19 @@ enum abstract TestLocation(String) from String
19
19
final Git = " git" ;
20
20
}
21
21
22
- enum abstract HaxeVersion (String ) from String to String
23
- {
24
- final Latest = " latest" ;
25
- final Stable = " stable" ;
26
- final Nightly = " nightly" ;
27
- // use the version already installed (no lix)
28
- final Current = " current" ;
29
- }
30
-
31
22
private final HaxelibRepo = Path .join ([Sys .getEnv (" HOME" ), " haxe/haxelib" ]);
32
23
33
24
function main ()
34
25
{
35
- final haxeVersion : HaxeVersion = Core .getInput (" haxe-version" );
36
26
final limeVersion : LibVersion = Core .getInput (" lime-version" );
37
27
final openflVersion : LibVersion = Core .getInput (" openfl-version" );
38
28
final flixelVersions : LibVersion = Core .getInput (" flixel-versions" );
39
29
final testLocation : TestLocation = Core .getInput (" test-location" );
40
30
final target : Target = Core .getInput (" target" );
41
31
final runTests : Bool = Core .getInput (" run-tests" ) == " true" ;
42
32
43
- if (runTests )
44
- {
45
- if (target == Hl && haxeVersion .startsWith (" 3" ))
46
- {
47
- return ; // OpenFL's HL target and Haxe 3 don't work together
48
- }
49
- }
50
-
51
33
Core .startGroup (" Installing Haxe Dependencies" );
52
34
final installationResult = runUntilFailure ([
53
- setupLix .bind (haxeVersion ),
54
35
run .bind (" sudo add-apt-repository ppa:haxe/snapshots -y" ), // for nekotools
55
36
run .bind (" sudo apt-get install --fix-missing" ), // for nekotools
56
37
run .bind (" sudo apt-get upgrade" ), // for nekotools
@@ -67,8 +48,6 @@ function main()
67
48
Core .endGroup ();
68
49
69
50
Core .startGroup (" Listing Dependencies" );
70
- if (haxeVersion != Current )
71
- run (" lix -v" );
72
51
run (" haxe -version" );
73
52
run (" neko -version" );
74
53
run (" haxelib version" );
@@ -97,21 +76,6 @@ function main()
97
76
}
98
77
}
99
78
100
- private function setupLix (haxeVersion ): ExitCode
101
- {
102
- if (haxeVersion == Current )
103
- return Success ;
104
-
105
- Sys .command (" lix scope" );
106
- final path = Path .join ([Sys .getEnv (" HOME" ), " haxe/.haxerc" ]);
107
- if (! FileSystem .exists (path ))
108
- {
109
- return Failure ;
110
- }
111
- File .saveContent (path , ' {"version": "stable", "resolveLibs": "haxelib"}' );
112
- return run (' lix install haxe $haxeVersion --global' );
113
- }
114
-
115
79
private function installHaxelibs (limeVersion : LibVersion , openflVersion : LibVersion , flixelVersions : LibVersion ): ExitCode
116
80
{
117
81
final libs = [
0 commit comments