Skip to content

Commit 802e4ba

Browse files
committed
Install OpenSSL 3.5 before test BCL MLKem
1 parent da20b3b commit 802e4ba

File tree

1 file changed

+16
-69
lines changed

1 file changed

+16
-69
lines changed

.github/workflows/build.yml

Lines changed: 16 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,17 @@ jobs:
4950
5051
- name: Run Integration Tests .NET 2
5152
run: |
53+
wget https://github.com/openssl/openssl/releases/download/openssl-3.5.4/openssl-3.5.4.tar.gz
54+
tar -xzvf openssl-3.5.4.tar.gz
55+
cd openssl-3.5.4
56+
./config --prefix=/usr/local/openssl
57+
make
58+
sudo make install
59+
sudo ln -sf /usr/local/openssl/bin/openssl /usr/bin/openssl
60+
sudo ln -sf /usr/local/openssl/lib64/libssl.so.3 /usr/lib/x86_64-linux-gnu/libssl.so.3
61+
sudo ln -sf /usr/local/openssl/lib64/libcrypto.so.3 /usr/lib/x86_64-linux-gnu/libcrypto.so.3
62+
openssl version
63+
cd ..
5264
dotnet test \
5365
-f net10.0 \
5466
--logger "console;verbosity=normal" \
@@ -60,19 +72,6 @@ jobs:
6072
-p:CoverletOutput=../../coverlet/linux_integration_test_net_10_coverage_2.xml \
6173
test/Renci.SshNet.IntegrationTests/
6274
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-
7675
- name: Archive Coverlet Results
7776
uses: actions/upload-artifact@v5
7877
with:
@@ -154,41 +153,15 @@ jobs:
154153
podman build -t renci-ssh-tests-server-image -f test/Renci.SshNet.IntegrationTests/Dockerfile test/Renci.SshNet.IntegrationTests/
155154
podman run --rm -h renci-ssh-tests-server -d -p 2222:22 renci-ssh-tests-server-image
156155
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
156+
- name: Run Integration Tests .NET Framework
182157
run:
183158
dotnet test `
184159
-f net48 `
185160
--logger "console;verbosity=normal" `
186161
--logger GitHubActions `
187-
--filter "Name=MLKem768X25519Sha256" `
188-
-p:DefineConstants="Test_BouncyCastle_MLKem" `
189162
-p:CollectCoverage=true `
190163
-p:CoverletOutputFormat=cobertura `
191-
-p:CoverletOutput=..\..\coverlet\windows_integration_test_net_4_8_coverage_3.xml `
164+
-p:CoverletOutput=..\..\coverlet\windows_integration_test_net_4_8_coverage.xml `
192165
test\Renci.SshNet.IntegrationTests\
193166

194167
- name: Archive Coverlet Results
@@ -222,41 +195,15 @@ jobs:
222195
podman build -t renci-ssh-tests-server-image -f test/Renci.SshNet.IntegrationTests/Dockerfile test/Renci.SshNet.IntegrationTests/
223196
podman run --rm -h renci-ssh-tests-server -d -p 2222:22 renci-ssh-tests-server-image
224197
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
198+
- name: Run Integration Tests .NET
250199
run:
251200
dotnet test `
252201
-f net10.0 `
253202
--logger "console;verbosity=normal" `
254203
--logger GitHubActions `
255-
--filter "Name=MLKem768X25519Sha256" `
256-
-p:DefineConstants="Test_BouncyCastle_MLKem" `
257204
-p:CollectCoverage=true `
258205
-p:CoverletOutputFormat=cobertura `
259-
-p:CoverletOutput=..\..\coverlet\windows_integration_test_net_10_coverage_3.xml `
206+
-p:CoverletOutput=..\..\coverlet\windows_integration_test_net_10_coverage.xml `
260207
test\Renci.SshNet.IntegrationTests\
261208

262209
- name: Archive Coverlet Results

0 commit comments

Comments
 (0)