Skip to content

Commit

Permalink
Workflow fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Reycko committed Mar 4, 2024
1 parent a927c3e commit a672f84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- uses: krdlab/setup-haxe@master
with:
haxe-version: latest
haxe-version: 4.3.3
# Runs a set of commands using the runners shell
- name: Install Haxelib
run: |
Expand All @@ -43,7 +43,6 @@ jobs:
run: echo "${{github.run_id}}" > VERSION
- name: Compile
run: |
haxelib fixrepo
haxelib run lime build Project.xml linux --app-version="4.0.0-${{ github.run_id}}"
- name: Publish Artifact
uses: actions/[email protected]
Expand All @@ -59,7 +58,7 @@ jobs:

- uses: krdlab/setup-haxe@master
with:
haxe-version: latest
haxe-version: 4.3.3
# Runs a set of commands using the runners shell
- name: Install Haxelib
run: |
Expand Down Expand Up @@ -88,7 +87,7 @@ jobs:

- uses: krdlab/setup-haxe@master
with:
haxe-version: 4.2.5
haxe-version: 4.3.3
# Runs a set of commands using the runners shell
- name: Install Haxelib
run: |
Expand Down
6 changes: 3 additions & 3 deletions source/psychlua/HScript.hx
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ class HScript extends SScript
}
}

public function executeCode(?funcToRun:String = null, ?funcArgs:Array<Dynamic> = null):TeaCall {
public function executeCode(?funcToRun:String = null, ?funcArgs:Array<Dynamic> = null):Tea {
if (funcToRun == null) return null;

if(!exists(funcToRun)) {
Expand Down Expand Up @@ -346,7 +346,7 @@ class HScript extends SScript
return callValue;
}

public function executeFunction(funcToRun:String = null, funcArgs:Array<Dynamic>):TeaCall {
public function executeFunction(funcToRun:String = null, funcArgs:Array<Dynamic>):Tea {
if (funcToRun == null) return null;
return call(funcToRun, funcArgs);
}
Expand All @@ -356,7 +356,7 @@ class HScript extends SScript
funk.addLocalCallback("runHaxeCode", function(codeToRun:String, ?varsToBring:Any = null, ?funcToRun:String = null, ?funcArgs:Array<Dynamic> = null):Dynamic {
#if SScript
initHaxeModuleCode(funk, codeToRun, varsToBring);
final retVal:TeaCall = funk.hscript.executeCode(funcToRun, funcArgs);
final retVal:Tea = funk.hscript.executeCode(funcToRun, funcArgs);
if (retVal != null) {
if(retVal.succeeded)
return (retVal.returnValue == null || LuaUtils.isOfTypes(retVal.returnValue, [Bool, Int, Float, String, Array])) ? retVal.returnValue : null;
Expand Down

0 comments on commit a672f84

Please sign in to comment.