diff options
-rw-r--r-- | .github/workflows/test.yml | 4 | ||||
-rw-r--r-- | spec/util/test_env.lua | 15 |
2 files changed, 17 insertions, 2 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 63391324..f9b897f4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml | |||
@@ -39,6 +39,10 @@ jobs: | |||
39 | 39 | ||
40 | - uses: leafo/gh-actions-luarocks@v4.0.0 | 40 | - uses: leafo/gh-actions-luarocks@v4.0.0 |
41 | 41 | ||
42 | - name: 'Setup macOS deps' | ||
43 | if: ${{ contains(matrix.os, 'macos') }} | ||
44 | run: brew install openssl | ||
45 | |||
42 | - name: Prep | 46 | - name: Prep |
43 | run: | | 47 | run: | |
44 | luarocks install busted | 48 | luarocks install busted |
diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua index 1d38cec6..92fb1939 100644 --- a/spec/util/test_env.lua +++ b/spec/util/test_env.lua | |||
@@ -391,8 +391,19 @@ function test_env.set_args() | |||
391 | elseif system == "Darwin" then | 391 | elseif system == "Darwin" then |
392 | test_env.TEST_TARGET_OS = "osx" | 392 | test_env.TEST_TARGET_OS = "osx" |
393 | if test_env.CI then | 393 | if test_env.CI then |
394 | test_env.OPENSSL_INCDIR = "/usr/local/opt/openssl/include" | 394 | if exists("/opt/homebrew/opt/openssl@3/include") then |
395 | test_env.OPENSSL_LIBDIR = "/usr/local/opt/openssl/lib" | 395 | test_env.OPENSSL_INCDIR = "/opt/homebrew/opt/openssl@3/include" |
396 | test_env.OPENSSL_LIBDIR = "/opt/homebrew/opt/openssl@3/lib" | ||
397 | elseif exists("/opt/homebrew/opt/openssl@1.1/include") then | ||
398 | test_env.OPENSSL_INCDIR = "/opt/homebrew/opt/openssl@1.1/include" | ||
399 | test_env.OPENSSL_LIBDIR = "/opt/homebrew/opt/openssl@1.1/lib" | ||
400 | elseif exists("/opt/homebrew/opt/openssl/include") then | ||
401 | test_env.OPENSSL_INCDIR = "/opt/homebrew/opt/openssl/include" | ||
402 | test_env.OPENSSL_LIBDIR = "/opt/homebrew/opt/openssl/lib" | ||
403 | else | ||
404 | test_env.OPENSSL_INCDIR = "/usr/local/opt/openssl/include" | ||
405 | test_env.OPENSSL_LIBDIR = "/usr/local/opt/openssl/lib" | ||
406 | end | ||
396 | end | 407 | end |
397 | end | 408 | end |
398 | end | 409 | end |