File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed
Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -32,21 +32,17 @@ jobs:
3232 uses : gittools/actions/gitversion/execute@v0.9.7
3333 - name : Restore dependencies
3434 run : dotnet restore
35- - name : Install Mono (Linux only)
36- if : runner.os == 'Linux'
37- run : |
38- sudo apt-get update
39- # Install mono and common OpenSSL packages. Some test hosts need libssl1.1, others libssl3.
40- sudo apt-get install -y --no-install-recommends mono-devel libssl-dev libssl3 || true
41- # Try installing libssl1.1 if available (older runners/packages may require it). Ignore errors.
42- sudo apt-get install -y --no-install-recommends libssl1.1 || true
43- # Verify installation
44- mono --version || true
45- ldconfig -p | grep libssl || true
4635 - name : Build
4736 run : dotnet build --configuration Release --no-restore
4837 - name : Test
49- run : dotnet test --configuration Release --no-build --verbosity normal
38+ run : |
39+ if [ "$RUNNER_OS" = "Linux" ]; then
40+ # Skip net462 on Linux (Mono/OpenSSL compatibility issues)
41+ dotnet test --configuration Release --no-build --verbosity normal --framework '!net462'
42+ else
43+ dotnet test --configuration Release --no-build --verbosity normal
44+ fi
45+ shell : bash
5046 - run : |
5147 dotnet pack \
5248 --include-source \
You can’t perform that action at this time.
0 commit comments