Skip to content

Commit 10101ad

Browse files
committed
Install OpenSSL 3.5 before test BCL MLKem
1 parent 60cde34 commit 10101ad

File tree

1 file changed

+19
-69
lines changed

1 file changed

+19
-69
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
3838
- name: Run Integration Tests .NET 1
3939
run: |
40+
openssl version
4041
dotnet test \
4142
-f net10.0 \
4243
--no-build \
@@ -49,6 +50,20 @@ jobs:
4950
5051
- name: Run Integration Tests .NET 2
5152
run: |
53+
# ml-kem requires openssl 3.5.0+ https://learn.microsoft.com/en-us/dotnet/standard/security/cross-platform-cryptography#ml-kem
54+
sudo apt remove openssl -y
55+
wget https://github.com/openssl/openssl/releases/download/openssl-3.5.4/openssl-3.5.4.tar.gz
56+
tar -xzvf openssl-3.5.4.tar.gz
57+
cd openssl-3.5.4
58+
./Configure --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib
59+
make
60+
sudo make install
61+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/ssl
62+
export PATH=/usr/local/ssl/bin:$PATH
63+
sudo ldconfig
64+
openssl version
65+
sudo systemctl restart ssh
66+
cd ..
5267
dotnet test \
5368
-f net10.0 \
5469
--logger "console;verbosity=normal" \
@@ -60,19 +75,6 @@ jobs:
6075
-p:CoverletOutput=../../coverlet/linux_integration_test_net_10_coverage_2.xml \
6176
test/Renci.SshNet.IntegrationTests/
6277
63-
- name: Run Integration Tests .NET 3
64-
run: |
65-
dotnet test \
66-
-f net10.0 \
67-
--logger "console;verbosity=normal" \
68-
--logger GitHubActions \
69-
--filter "Name=MLKem768X25519Sha256" \
70-
-p:DefineConstants="Test_BouncyCastle_MLKem" \
71-
-p:CollectCoverage=true \
72-
-p:CoverletOutputFormat=cobertura \
73-
-p:CoverletOutput=../../coverlet/linux_integration_test_net_10_coverage_3.xml \
74-
test/Renci.SshNet.IntegrationTests/
75-
7678
- name: Archive Coverlet Results
7779
uses: actions/upload-artifact@v5
7880
with:
@@ -154,41 +156,15 @@ jobs:
154156
podman build -t renci-ssh-tests-server-image -f test/Renci.SshNet.IntegrationTests/Dockerfile test/Renci.SshNet.IntegrationTests/
155157
podman run --rm -h renci-ssh-tests-server -d -p 2222:22 renci-ssh-tests-server-image
156158
157-
- name: Run Integration Tests .NET Framework 1
158-
run:
159-
dotnet test `
160-
-f net48 `
161-
--logger "console;verbosity=normal" `
162-
--logger GitHubActions `
163-
-p:CollectCoverage=true `
164-
-p:CoverletOutputFormat=cobertura `
165-
-p:CoverletOutput=..\..\coverlet\windows_integration_test_net_4_8_coverage_1.xml `
166-
test\Renci.SshNet.IntegrationTests\
167-
168-
- name: Run Integration Tests .NET Framework 2
169-
run:
170-
dotnet test `
171-
-f net48 `
172-
--logger "console;verbosity=normal" `
173-
--logger GitHubActions `
174-
--filter "Name=MLKem768X25519Sha256" `
175-
-p:DefineConstants="Test_BCL_MLKem" `
176-
-p:CollectCoverage=true `
177-
-p:CoverletOutputFormat=cobertura `
178-
-p:CoverletOutput=..\..\coverlet\windows_integration_test_net_4_8_coverage_2.xml `
179-
test\Renci.SshNet.IntegrationTests\
180-
181-
- name: Run Integration Tests .NET Framework 3
159+
- name: Run Integration Tests .NET Framework
182160
run:
183161
dotnet test `
184162
-f net48 `
185163
--logger "console;verbosity=normal" `
186164
--logger GitHubActions `
187-
--filter "Name=MLKem768X25519Sha256" `
188-
-p:DefineConstants="Test_BouncyCastle_MLKem" `
189165
-p:CollectCoverage=true `
190166
-p:CoverletOutputFormat=cobertura `
191-
-p:CoverletOutput=..\..\coverlet\windows_integration_test_net_4_8_coverage_3.xml `
167+
-p:CoverletOutput=..\..\coverlet\windows_integration_test_net_4_8_coverage.xml `
192168
test\Renci.SshNet.IntegrationTests\
193169

194170
- name: Archive Coverlet Results
@@ -222,41 +198,15 @@ jobs:
222198
podman build -t renci-ssh-tests-server-image -f test/Renci.SshNet.IntegrationTests/Dockerfile test/Renci.SshNet.IntegrationTests/
223199
podman run --rm -h renci-ssh-tests-server -d -p 2222:22 renci-ssh-tests-server-image
224200
225-
- name: Run Integration Tests .NET 1
226-
run:
227-
dotnet test `
228-
-f net10.0 `
229-
--logger "console;verbosity=normal" `
230-
--logger GitHubActions `
231-
-p:CollectCoverage=true `
232-
-p:CoverletOutputFormat=cobertura `
233-
-p:CoverletOutput=..\..\coverlet\windows_integration_test_net_10_coverage_1.xml `
234-
test\Renci.SshNet.IntegrationTests\
235-
236-
- name: Run Integration Tests .NET 2
237-
run:
238-
dotnet test `
239-
-f net10.0 `
240-
--logger "console;verbosity=normal" `
241-
--logger GitHubActions `
242-
--filter "Name=MLKem768X25519Sha256" `
243-
-p:DefineConstants="Test_BCL_MLKem" `
244-
-p:CollectCoverage=true `
245-
-p:CoverletOutputFormat=cobertura `
246-
-p:CoverletOutput=..\..\coverlet\windows_integration_test_net_10_coverage_2.xml `
247-
test\Renci.SshNet.IntegrationTests\
248-
249-
- name: Run Integration Tests .NET 3
201+
- name: Run Integration Tests .NET
250202
run:
251203
dotnet test `
252204
-f net10.0 `
253205
--logger "console;verbosity=normal" `
254206
--logger GitHubActions `
255-
--filter "Name=MLKem768X25519Sha256" `
256-
-p:DefineConstants="Test_BouncyCastle_MLKem" `
257207
-p:CollectCoverage=true `
258208
-p:CoverletOutputFormat=cobertura `
259-
-p:CoverletOutput=..\..\coverlet\windows_integration_test_net_10_coverage_3.xml `
209+
-p:CoverletOutput=..\..\coverlet\windows_integration_test_net_10_coverage.xml `
260210
test\Renci.SshNet.IntegrationTests\
261211

262212
- name: Archive Coverlet Results

0 commit comments

Comments
 (0)