-
Notifications
You must be signed in to change notification settings - Fork 542
Description
Description:
When attempting to use this action on an M1 Mac Mini, the action fails and shows this output.
2025-12-13T15:40:54.9907680Z DOTNET_ROOT: /Users/<my user directory>/.dotnet
2025-12-13T15:40:54.9908150Z ##[endgroup]
2025-12-13T15:40:55.0243290Z Failed to load /Users/<my user directory>/.dotnet/host/fxr/10.0.1/libhostfxr.dylib, error: dlopen(/Users/<my user directory>/.dotnet/host/fxr/10.0.1/libhostfxr.dylib, 0x0001): tried: '/Users/<my user directory>/.dotnet/host/fxr/10.0.1/libhostfxr.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/<my user directory>/.dotnet/host/fxr/10.0.1/libhostfxr.dylib' (no such file), '/Users/<my user directory>/.dotnet/host/fxr/10.0.1/libhostfxr.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64'))
2025-12-13T15:40:55.0247880Z The library libhostfxr.dylib was found, but loading it from /Users/<my user directory>/.dotnet/host/fxr/10.0.1/libhostfxr.dylib failed
2025-12-13T15:40:55.0248810Z - Installing .NET prerequisites might help resolve this problem.
2025-12-13T15:40:55.0249450Z https://go.microsoft.com/fwlink/?linkid=2063366
2025-12-13T15:40:55.0286660Z ##[error]Process completed with exit code 130.
I have verified that my mac itself is able to build using the local CLI.
Here's my dotnet info from my mac showing that the local CLI is pulling the correct architecture.
An interesting note, using this action with Gitea worked perfectly fine, but when I migrated to GitHub, I started seeing this issue. Not sure if this detail is relevant.
Task version:
5
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Repro steps:
BuildAPI:
runs-on: self-hosted
steps:
- name: Check out repository code
uses: actions/checkout@v5
- name: Setting up .Net CLI
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.x'
- name: Build API
run: dotnet build follicleAPI
The repo is private, but I am able to grant access to it -> https://github.com/lostpanda85/follicle/actions/runs/20194241737/job/57975890828
Expected behavior:
The correct architecture being downloaded (Arm64) instead of x86-64
Actual behavior:
x86-64 version of the SDK is being grabbed and used instead of the correct version.