From c7e096b71fe6cee48a576a31a938fef5b84001ca Mon Sep 17 00:00:00 2001 From: Apprentice-Alchemist <53486764+Apprentice-Alchemist@users.noreply.github.com> Date: Sat, 29 Jun 2024 15:56:39 +0200 Subject: [PATCH] Fixes for ARM macOS CI. --- .github/workflows/main.yml | 3 +++ extra/github-actions/workflows/main.yml | 3 +++ tests/misc/neko/projects/Issue10937/Main.hx | 2 +- tests/runci/targets/Cpp.hx | 2 ++ tests/runci/targets/Lua.hx | 4 +++- 5 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 876513f655e..c1faab3332c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -710,6 +710,9 @@ jobs: include: - target: hl BREW_PACKAGES: ninja + exclude: + - os: macos-14 + target: hl steps: - uses: actions/checkout@main with: diff --git a/extra/github-actions/workflows/main.yml b/extra/github-actions/workflows/main.yml index 17dbc425635..b64bf01df64 100644 --- a/extra/github-actions/workflows/main.yml +++ b/extra/github-actions/workflows/main.yml @@ -406,6 +406,9 @@ jobs: include: - target: hl BREW_PACKAGES: ninja + exclude: + - os: macos-14 + target: hl steps: - uses: actions/checkout@main with: diff --git a/tests/misc/neko/projects/Issue10937/Main.hx b/tests/misc/neko/projects/Issue10937/Main.hx index 52afe81b827..932132521f7 100644 --- a/tests/misc/neko/projects/Issue10937/Main.hx +++ b/tests/misc/neko/projects/Issue10937/Main.hx @@ -60,8 +60,8 @@ function main() { final expectedNdllSubDir = Sys.systemName() + arch.getNdllSuffix() + "/"; + trace(neko.vm.Loader.local().getPath()); final ndllPath = neko.vm.Loader.local().getPath()[0]; - if (ndllPath.endsWith(expectedNdllSubDir)) { Sys.println("Success"); } else { diff --git a/tests/runci/targets/Cpp.hx b/tests/runci/targets/Cpp.hx index 594dd1d14dd..fae603d545f 100644 --- a/tests/runci/targets/Cpp.hx +++ b/tests/runci/targets/Cpp.hx @@ -54,6 +54,8 @@ class Cpp { 'HXCPP_M32'; case 'Linux' if(Linux.arch == Arm64): 'HXCPP_LINUX_ARM64'; + case 'Mac' if(commandResult('arch').stdout == "arm64"): + 'HXCPP_ARM64'; case _: 'HXCPP_M64'; } diff --git a/tests/runci/targets/Lua.hx b/tests/runci/targets/Lua.hx index 3c743223980..141fc143dab 100644 --- a/tests/runci/targets/Lua.hx +++ b/tests/runci/targets/Lua.hx @@ -22,7 +22,9 @@ class Lua { runNetworkCommand("brew", ["install", "python3"]); attemptCommand("brew", ["install", "pcre2"]); - runCommand("pip3", ["install", "hererocks"]); + runCommand("pip3", ["install", "--user", "hererocks"]); + final pyUserBase = commandResult("python", ["-m", "site", "--user-base"]).stdout.trim(); + addToPATH(Path.join([pyUserBase, "bin"])); runCommand("brew", ["install", "openssl"]); } }