Skip to content

Commit 7aed35a

Browse files
committed
Windows Ruby 3.3: Workaround: Set OPENSSL_MODULES to find providers.
This commit is a workaround to avoid the following test failures by loading legacy provider. ``` 2) Error: test_openssl_legacy_provider(OpenSSL::TestProvider): OpenSSL::Provider::ProviderError: Failed to load legacy provider: (null) (name=legacy) D:/a/ruby-openssl/ruby-openssl/test/openssl/test_provider.rb:62:in `load' D:/a/ruby-openssl/ruby-openssl/test/openssl/test_provider.rb:62:in `<main>' D:/a/ruby-openssl/ruby-openssl/test/openssl/test_provider.rb:61:in `with_openssl' D:/a/ruby-openssl/ruby-openssl/test/openssl/test_provider.rb:36:in `test_openssl_legacy_provider' 33: end 34: 35: def test_openssl_legacy_provider => 36: with_openssl(<<-'end;') 37: OpenSSL::Provider.load("legacy") 38: algo = "RC4" 39: data = "a" * 1000 ```
1 parent 1fa9fc5 commit 7aed35a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ jobs:
5252
if: ${{ !matrix.skip-warnings }}
5353

5454
# Enable provider search path for OpenSSL 3.0 in MSYS2.
55-
# Remove when Ruby 3.2 build is updated
55+
# Remove when Ruby 3.2, and 3.3 builds are updated.
5656
- name: enable windows provider search path
5757
run: echo "OPENSSL_MODULES=$($env:RI_DEVKIT)\$($env:MSYSTEM_PREFIX)\lib\ossl-modules" >> $env:GITHUB_ENV
58-
if: runner.os == 'Windows' && matrix.ruby == '3.2'
58+
if: runner.os == 'Windows' && (matrix.ruby == '3.2' || matrix.ruby == '3.3')
5959

6060
- name: compile
6161
run: rake compile

0 commit comments

Comments
 (0)