kemalcr / kemal

Fast, Effective, Simple Web Framework

Home Page:https://kemalcr.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MacOs Ci is broken

sdogruyol opened this issue · comments

MacOS CI is broken on both latest and nightly on run spec with the following error. //cc @Sija

ld: library not found for -lssl (this usually means you need to install the development package for libssl)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: execution of command failed with code: 1: `cc "${@}" -o /Users/runner/.cache/crystal/crystal-run-spec.tmp  -rdynamic -L/Users/runner/work/_temp/crystal-latest-true-undefined/embedded/lib -lz `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libcrypto || printf %s '-lcrypto'` -lpcre -lgc -levent -liconv`
Error: Process completed with exit code 1.

Perhaps crystal-lang/crystal#13069 might have sth to do with it?

@Sija That can't be. The failure happens with both nightly and the 1.7.2 release. So it must be inherent to the runner image.

macos-latest was recently upgraded from macos-11 to macos-12, that's a possible cause for the disruption. Best to pin the version explicitly and perform updates intentionally.

However, I presume it's probably the same as actions/runner-images#7128 (comment)
This was just fixed in actions/runner-images#7125. Not sure how long it takes to roll out.

This can be fixed by installing pkg-config on macOS runner manually:

- name: Install macOS dependencies
  if: runner.os == 'macOS'
  run: |
    brew install pkg-config

But this is already fixed in the upstream actions/runner-images#7125.
So probably just need to wait while this will be released.