Skip to content

Commit 069ca5a

Browse files
Add more debugging info
1 parent 80a1432 commit 069ca5a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,11 @@ jobs:
122122
7.0.x
123123
124124
- name: Ensure DotNet Path
125+
if: ${{ matrix.options.os != 'windows-latest' }}
125126
run: echo "/usr/share/dotnet" >> $GITHUB_PATH
126127

127128
- name: Confirm DotNet Version
128-
run: dotnet --version # This will now find dotnet in /usr/share/dotnet
129+
run: dotnet --version
129130

130131
- name: DotNet Build
131132
if: ${{ matrix.options.sdk-preview != true }}

ci-build.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ param(
33
[string]$targetFramework
44
)
55

6-
#$env:DOTNET_ROOT = "/usr/share/dotnet"
7-
#$env:PATH = "$env:DOTNET_ROOT" + [System.IO.Path]::PathSeparator + $env:PATH
6+
Write-Output $env:PATH
7+
8+
dotnet --list-sdks
89

910
# Confirm dotnet version.
1011
dotnet --version
@@ -13,6 +14,5 @@ dotnet clean -c Release
1314

1415
$repositoryUrl = "https://github.com/$env:GITHUB_REPOSITORY"
1516

16-
1717
# Building for a specific framework.
1818
dotnet build -c Release -f $targetFramework /p:RepositoryUrl=$repositoryUrl

0 commit comments

Comments
 (0)