Skip to content

Commit

Permalink
upstream merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mensfeld committed Dec 25, 2024
2 parents 53cb0b1 + 471da60 commit 3446e30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
fail-fast: false
matrix:
ruby:
- '3.4.0-preview2'
- '3.4'
- '3.3'
- '3.2'
- '3.1'
include:
- ruby: '3.3'
- ruby: '3.4'
coverage: 'true'
steps:
- uses: actions/checkout@v4
Expand Down
10 changes: 5 additions & 5 deletions ext/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ task :default => :clean do
require "mini_portile2"
recipe = MiniPortile.new("librdkafka", Rdkafka::LIBRDKAFKA_VERSION)

# Use default homebrew openssl if we're on mac and the directory exists
# and each of flags is not empty
if recipe.host&.include?("darwin") && system("which brew &> /dev/null") && Dir.exist?("#{homebrew_prefix = %x(brew --prefix openssl).strip}")
ENV["CPPFLAGS"] = "-I#{homebrew_prefix}/include" unless ENV["CPPFLAGS"]
ENV["LDFLAGS"] = "-L#{homebrew_prefix}/lib" unless ENV["LDFLAGS"]
# Use default homebrew openssl if we're on mac and the directory exists, is not using nix-prepared libraries
# and each of flags is not already set
if recipe.host&.include?("darwin") && system("which brew &> /dev/null") && Dir.exist?("#{homebrew_prefix = %x(brew --prefix openssl).strip}") && ENV.key?("NIX_LDFLAGS")
ENV["CPPFLAGS"] = "-I#{homebrew_prefix}/include" unless ENV.key?("CPPFLAGS")
ENV["LDFLAGS"] = "-L#{homebrew_prefix}/lib" unless ENV.key?("LDFLAGS")
end

releases = File.expand_path(File.join(File.dirname(__FILE__), '../dist'))
Expand Down

0 comments on commit 3446e30

Please sign in to comment.