-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
incorrect release URL for macOS (darwin) runners #332
Comments
Is it still happening? I'm not able to repro with all macOS runners available: https://github.com/magefile/mage-action/actions/runs/11550066329?pr=341 |
Interesting that your runs seem to pull the mage binary from the actions cache but when I test it, it's downloading it from the repo artifacts. It still happens for me, I wonder how it got downloaded into the cache the first time for your runs. |
I'm looking through previous runs in this repository, but here's the relevant line |
Ok, so if I make a runner for So the issue is that it's trying to download |
https://github.com/magefile/mage-action/blob/master/src/installer.ts#L103-L108 const getFilename = (semver: string): string => {
const platform: string = osPlat == 'win32' ? 'Windows' : osPlat == 'darwin' ? 'macOS' : 'Linux';
const arch: string = osArch == 'x64' ? '64bit' : osArch == 'arm64' ? 'ARM64' : '32bit';
const ext: string = osPlat == 'win32' ? 'zip' : 'tar.gz';
return util.format('mage_%s_%s-%s.%s', semver, platform, arch, ext);
}; might need something like const getFilename = (semver: string): string => {
const platform: string = osPlat == 'win32' ? 'Windows' : osPlat == 'darwin' ? 'macOS' : 'Linux';
const arch: string = osPlat == 'darwin' && osArch == 'arm64' ? '64bit' : osArch == 'x64' ? '64bit' : osArch == 'arm64' ? 'ARM64' : '32bit';
const ext: string = osPlat == 'win32' ? 'zip' : 'tar.gz';
return util.format('mage_%s_%s-%s.%s', semver, platform, arch, ext);
}; |
Support guidelines
I've found a bug and checked that ...
Description
When using the action on a macOS runner it will fail to download the release binary.
Expected behaviour
For the action to download the correct binary.
Actual behaviour
Steps to reproduce
runs-on: macos-latest
Repository URL
https://github.com/na4ma4/mage-macos-issue
Workflow run URL
https://github.com/na4ma4/mage-macos-issue/actions/runs/9638284485
YAML workflow
Workflow logs
logs_25224800589.zip
Additional info
No response
The text was updated successfully, but these errors were encountered: