Open
Description
Description:
Cannot find Framework: 'Microsoft.NETCore.App', version '9.0.0' (x64)
after installing .NET 9.0.102
Job definition
jobs:
benchmark:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest, macOS-13]
fail-fast: false
env:
DOTNET_VERSION: 9.0.x
DOTNET_CLI_TELEMETRY_OPTOUT: 1
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Nuget cache
uses: actions/cache@v4
with:
path:
~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Build
run: dotnet build -c Release
working-directory: ./src/Lynx.Benchmark
- name: Run ${{ github.event.inputs.benchmark_name }} benchmark
if: matrix.os == 'windows-latest'
run: dotnet run -c Release --no-build --filter '${{ github.event.inputs.benchmark_name }}'
working-directory: ./src/Lynx.Benchmark
- name: Run ${{ github.event.inputs.benchmark_name }} benchmark with sudo
if: matrix.os != 'windows-latest'
run: sudo dotnet run -c Release --no-build --filter '${{ github.event.inputs.benchmark_name }}'
working-directory: ./src/Lynx.Benchmark
```
Logs
2025-02-01T19:11:06.3290450Z dotnet-install: Attempting to download using aka.ms link https://builds.dotnet.microsoft.com/dotnet/Runtime/8.0.12/dotnet-runtime-8.0.12-linux-x64.tar.gz
2025-02-01T19:11:06.5111141Z dotnet-install: Remote file https://builds.dotnet.microsoft.com/dotnet/Runtime/8.0.12/dotnet-runtime-8.0.12-linux-x64.tar.gz size is 31279408 bytes.
2025-02-01T19:11:06.5118247Z dotnet-install: Extracting archive from https://builds.dotnet.microsoft.com/dotnet/Runtime/8.0.12/dotnet-runtime-8.0.12-linux-x64.tar.gz
2025-02-01T19:11:07.1488364Z dotnet-install: Downloaded file size is 31279408 bytes.
2025-02-01T19:11:07.1489331Z dotnet-install: The remote and local file sizes are equal.
2025-02-01T19:11:07.1792445Z dotnet-install: Installed version is 8.0.12
2025-02-01T19:11:07.1854654Z dotnet-install: Adding to current process PATH: `/usr/share/dotnet`. Note: This change will be visible only when sourcing script.
2025-02-01T19:11:07.1857355Z dotnet-install: Note that the script does not resolve dependencies during installation.
2025-02-01T19:11:07.1859124Z dotnet-install: To check the list of dependencies, go to https://learn.microsoft.com/dotnet/core/install, select your operating system and check the "Dependencies" section.
2025-02-01T19:11:07.1859956Z dotnet-install: Installation finished successfully.
2025-02-01T19:11:07.1884657Z [command]/home/runner/work/_actions/actions/setup-dotnet/v4/externals/install-dotnet.sh --skip-non-versioned-files --channel 9.0
2025-02-01T19:11:07.4164350Z dotnet-install: Attempting to download using aka.ms link https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.102/dotnet-sdk-9.0.102-linux-x64.tar.gz
2025-02-01T19:11:08.2418660Z dotnet-install: Remote file https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.102/dotnet-sdk-9.0.102-linux-x64.tar.gz size is 210604728 bytes.
2025-02-01T19:11:08.2427795Z dotnet-install: Extracting archive from https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.102/dotnet-sdk-9.0.102-linux-x64.tar.gz
2025-02-01T19:11:12.5956518Z dotnet-install: Downloaded file size is 210604728 bytes.
2025-02-01T19:11:12.5957977Z dotnet-install: The remote and local file sizes are equal.
2025-02-01T19:11:12.8624035Z dotnet-install: Installed version is 9.0.102
2025-02-01T19:11:12.8685413Z dotnet-install: Adding to current process PATH: `/usr/share/dotnet`. Note: This change will be visible only when sourcing script.
2025-02-01T19:11:12.8687292Z dotnet-install: Note that the script does not resolve dependencies during installation.
2025-02-01T19:11:12.8688760Z dotnet-install: To check the list of dependencies, go to https://learn.microsoft.com/dotnet/core/install, select your operating system and check the "Dependencies" section.
2025-02-01T19:11:12.8690084Z dotnet-install: Installation finished successfully.
2025-02-01T19:11:12.9567767Z ##[group]Run actions/cache@v4
2025-02-01T19:11:12.9568061Z with:
2025-02-01T19:11:12.9568255Z path: ~/.nuget/packages
2025-02-01T19:11:12.9568468Z key: Linux-nuget-
2025-02-01T19:11:12.9568669Z restore-keys: Linux-nuget-
2025-02-01T19:11:12.9568895Z enableCrossOsArchive: false
2025-02-01T19:11:12.9569107Z fail-on-cache-miss: false
2025-02-01T19:11:12.9569334Z lookup-only: false
2025-02-01T19:11:12.9569523Z save-always: false
2025-02-01T19:11:12.9569695Z env:
2025-02-01T19:11:12.9569861Z DOTNET_VERSION: 9.0.x
2025-02-01T19:11:12.9570065Z DOTNET_CLI_TELEMETRY_OPTOUT: 1
2025-02-01T19:11:12.9570293Z DOTNET_ROOT: /usr/share/dotnet
2025-02-01T19:11:12.9570507Z ##[endgroup]
2025-02-01T19:11:13.8732571Z Cache Size: ~168 MB (175648060 B)
2025-02-01T19:11:13.8775003Z [command]/usr/bin/tar -xf /home/runner/work/_temp/d0469f95-f2b0-43be-b5ef-2ae15ffb58b8/cache.tzst -P -C /home/runner/work/Lynx/Lynx --use-compress-program unzstd
2025-02-01T19:11:14.2371708Z Received 175648060 of 175648060 (100.0%), 167.3 MBs/sec
2025-02-01T19:11:15.6320148Z Cache restored successfully
2025-02-01T19:11:15.7523292Z Cache restored from key: Linux-nuget-
2025-02-01T19:11:15.7680631Z ##[group]Run dotnet build -c Release
2025-02-01T19:11:15.7681019Z �[36;1mdotnet build -c Release�[0m
2025-02-01T19:11:15.7712949Z shell: /usr/bin/bash -e {0}
2025-02-01T19:11:15.7713205Z env:
2025-02-01T19:11:15.7713378Z DOTNET_VERSION: 9.0.x
2025-02-01T19:11:15.7713615Z DOTNET_CLI_TELEMETRY_OPTOUT: 1
2025-02-01T19:11:15.7713855Z DOTNET_ROOT: /usr/share/dotnet
2025-02-01T19:11:15.7714073Z ##[endgroup]
2025-02-01T19:11:16.7728462Z Determining projects to restore...
2025-02-01T19:11:18.8449788Z Restored /home/runner/work/Lynx/Lynx/src/Lynx/Lynx.csproj (in 1.65 sec).
2025-02-01T19:11:18.9702368Z Restored /home/runner/work/Lynx/Lynx/src/Lynx.Benchmark/Lynx.Benchmark.csproj (in 1.79 sec).
2025-02-01T19:11:39.1946161Z Lynx -> /home/runner/work/Lynx/Lynx/src/Lynx/bin/Release/net9.0/Lynx.dll
2025-02-01T19:11:41.7331933Z Lynx.Benchmark -> /home/runner/work/Lynx/Lynx/src/Lynx.Benchmark/bin/Release/net9.0/Lynx.Benchmark.dll
2025-02-01T19:11:41.7389913Z
2025-02-01T19:11:41.7395290Z Build succeeded.
2025-02-01T19:11:41.7395693Z 0 Warning(s)
2025-02-01T19:11:41.7398165Z 0 Error(s)
2025-02-01T19:11:41.7402838Z
2025-02-01T19:11:41.7403297Z Time Elapsed 00:00:25.43
2025-02-01T19:11:41.7719993Z ##[group]Run sudo dotnet run -c Release --no-build --filter '*PawnIslandsBenchmark*'
2025-02-01T19:11:41.7720645Z �[36;1msudo dotnet run -c Release --no-build --filter '*PawnIslandsBenchmark*'�[0m
2025-02-01T19:11:41.7749902Z shell: /usr/bin/bash -e {0}
2025-02-01T19:11:41.7750142Z env:
2025-02-01T19:11:41.7750310Z DOTNET_VERSION: 9.0.x
2025-02-01T19:11:41.7750534Z DOTNET_CLI_TELEMETRY_OPTOUT: 1
2025-02-01T19:11:41.7750775Z DOTNET_ROOT: /usr/share/dotnet
2025-02-01T19:11:41.7751005Z ##[endgroup]
2025-02-01T19:11:46.6786128Z You must install or update .NET to run this application.
2025-02-01T19:11:46.6786842Z
2025-02-01T19:11:46.6787389Z App: /home/runner/work/Lynx/Lynx/src/Lynx.Benchmark/bin/Release/net9.0/Lynx.Benchmark
2025-02-01T19:11:46.6788134Z Architecture: x64
2025-02-01T19:11:46.6788717Z Framework: 'Microsoft.NETCore.App', version '9.0.0' (x64)
2025-02-01T19:11:46.6789316Z .NET location: /usr/lib/dotnet
2025-02-01T19:11:46.6789585Z
2025-02-01T19:11:46.6789847Z The following frameworks were found:
2025-02-01T19:11:46.6790381Z 8.0.12 at [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
2025-02-01T19:11:46.6790776Z
2025-02-01T19:11:46.6790922Z Learn more:
2025-02-01T19:11:46.6791322Z https://aka.ms/dotnet/app-launch-failed
2025-02-01T19:11:46.6791655Z
2025-02-01T19:11:46.6791879Z To install missing framework, download:
2025-02-01T19:11:46.6793152Z https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=9.0.0&arch=x64&rid=ubuntu.24.04-x64&os=ubuntu.24.04
2025-02-01T19:11:46.6913710Z ##[error]Process completed with exit code 150.
2025-02-01T19:11:46.7039801Z Post job cleanup
Task version:
actions/setup-dotnet@v4
Platform:
- Ubuntu
Runner type:
- Hosted
- Self-hosted
Repro steps:
Run:
https://github.com/lynx-chess/Lynx/actions/runs/13091616851/job/36528899896
Complete logs:
Activity