Skip to content

Commit aac1641

Browse files
committed
Update github action
1 parent ddd1c16 commit aac1641

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ jobs:
2121
uses: actions/setup-dotnet@v4
2222
with:
2323
dotnet-version: ${{ matrix.dotnet-version }}
24+
- name: Install SSL dependencies (for older .NET versions)
25+
if: matrix.dotnet-version == '2.2' || matrix.dotnet-version == '3.0' || matrix.dotnet-version == '3.1' || matrix.dotnet-version == '5.0'
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install -y libssl1.1
29+
- name: Set SSL environment variables (for older .NET versions)
30+
if: matrix.dotnet-version == '2.2' || matrix.dotnet-version == '3.0' || matrix.dotnet-version == '3.1' || matrix.dotnet-version == '5.0'
31+
run: |
32+
echo "DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER=0" >> $GITHUB_ENV
33+
echo "DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1" >> $GITHUB_ENV
2434
- name: Restore dependencies
2535
run: dotnet restore
2636
- name: Run tests

0 commit comments

Comments
 (0)