Skip to content

Commit 927d5b5

Browse files
committed
Don't run Desktop Framework on Linux for now
1 parent 6f756cb commit 927d5b5

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

.github/workflows/dotnet.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff 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 \

0 commit comments

Comments
 (0)