Use explicit .NET 9 path in workflows
CI / Build and Test (push) Failing after 9s
Details
CI / Build and Test (push) Failing after 9s
Details
This commit is contained in:
parent
f0dbd29b58
commit
c8840f2e8b
|
|
@ -10,6 +10,7 @@ on:
|
||||||
env:
|
env:
|
||||||
DOTNET_NOLOGO: true
|
DOTNET_NOLOGO: true
|
||||||
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
||||||
|
DOTNET_ROOT: C:\dotnet
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
@ -19,18 +20,24 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup .NET Path
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
echo "C:\dotnet" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||||
|
echo "DOTNET_ROOT=C:\dotnet" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
||||||
|
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: dotnet restore
|
run: C:\dotnet\dotnet.exe restore
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: dotnet build --configuration Release --no-restore
|
run: C:\dotnet\dotnet.exe build --configuration Release --no-restore
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: dotnet test --configuration Release --no-build --verbosity normal
|
run: C:\dotnet\dotnet.exe test --configuration Release --no-build --verbosity normal
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Pack NuGet (preview)
|
- name: Pack NuGet (preview)
|
||||||
run: dotnet pack --configuration Release --no-build -o ./nupkg
|
run: C:\dotnet\dotnet.exe pack --configuration Release --no-build -o ./nupkg
|
||||||
|
|
||||||
- name: Upload NuGet artifact
|
- name: Upload NuGet artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ on:
|
||||||
env:
|
env:
|
||||||
DOTNET_NOLOGO: true
|
DOTNET_NOLOGO: true
|
||||||
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
||||||
|
DOTNET_ROOT: C:\dotnet
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
|
|
@ -30,16 +31,16 @@ jobs:
|
||||||
echo "Building version: $version"
|
echo "Building version: $version"
|
||||||
|
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: dotnet restore
|
run: C:\dotnet\dotnet.exe restore
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: dotnet build --configuration Release --no-restore
|
run: C:\dotnet\dotnet.exe build --configuration Release --no-restore
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: dotnet test --configuration Release --no-build --verbosity normal
|
run: C:\dotnet\dotnet.exe test --configuration Release --no-build --verbosity normal
|
||||||
|
|
||||||
- name: Pack NuGet package
|
- name: Pack NuGet package
|
||||||
run: dotnet pack --configuration Release --no-build -o ./nupkg /p:PackageVersion=${{ steps.version.outputs.VERSION }}
|
run: C:\dotnet\dotnet.exe pack --configuration Release --no-build -o ./nupkg /p:PackageVersion=${{ steps.version.outputs.VERSION }}
|
||||||
|
|
||||||
- name: Publish to NuGet.org
|
- name: Publish to NuGet.org
|
||||||
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
|
run: C:\dotnet\dotnet.exe nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue