Skip to content

Commit

Permalink
Merge pull request #844 from h0tw1r3/windows-ed25519
Browse files Browse the repository at this point in the history
Bolt windows ed25519 support
  • Loading branch information
joshcooper authored May 8, 2024
2 parents 45ab2a8 + 38f3e8b commit 5fdc24e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 5 additions & 1 deletion configs/components/ruby-2.7.8.rb
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,11 @@
elsif platform.is_macos? && platform.architecture == 'arm64' && platform.os_version.to_i >= 13
rbconfig_changes["CC"] = 'clang'
elsif platform.is_windows?
rbconfig_changes["CC"] = "x86_64-w64-mingw32-gcc"
if platform.architecture == "x64"
rbconfig_changes["CC"] = "x86_64-w64-mingw32-gcc"
else
rbconfig_changes["CC"] = "i686-w64-mingw32-gcc"
end
end

pkg.add_source("file://resources/files/ruby_vendor_gems/operating_system.rb")
Expand Down
8 changes: 2 additions & 6 deletions configs/projects/bolt-runtime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,8 @@
proj.component "puppet-ca-bundle"
proj.component "ruby-#{proj.ruby_version}"

# Building native gems on Windows has some issues right now.
# Include for non-Windows platforms only.
unless platform.is_windows?
proj.component 'rubygem-bcrypt_pbkdf'
proj.component 'rubygem-ed25519'
end
proj.component 'rubygem-bcrypt_pbkdf'
proj.component 'rubygem-ed25519'

# Puppet dependencies
proj.component 'rubygem-hocon'
Expand Down

0 comments on commit 5fdc24e

Please sign in to comment.