From 05888e3243120290856d8664c3831a5fe49c5f1a Mon Sep 17 00:00:00 2001 From: AlexHaxe Date: Wed, 14 Aug 2024 02:10:35 +0200 Subject: [PATCH] use correct var name for condition --- .github/workflows/main.yml | 2 +- tests/RunCi.hx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2508fb5..a66318d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,7 +39,7 @@ jobs: haxelib install utest - name: Install hx4compat - if: matrix.target == latest + if: matrix.haxe-version == 'latest' run: | haxelib git hx4compat https://github.com/HaxeFoundation/hx4compat.git diff --git a/tests/RunCi.hx b/tests/RunCi.hx index db3de04..abb01fc 100644 --- a/tests/RunCi.hx +++ b/tests/RunCi.hx @@ -45,7 +45,11 @@ class RunCi { static inline var EXAMPLES_DIR = "../www/examples/"; static var examplesToSkip = [#if (haxe_ver < "4.2.0") "Example-23.hx" #end]; static var exampleTargets = ["Example-20.hx" => Js]; + #if haxe5 static var librariesForExamples = ["Example-22.hx" => ["utest", "hx4compat"]]; + #else + static var librariesForExamples = ["Example-22.hx" => ["utest"]]; + #end public static function main():Void { var target:Target = Sys.args()[0];