-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add Ninja 1.12.1 support, including improved platform detection #29
Conversation
const destDir = core.getInput('destination') || 'ninja-build' | ||
const proxyServer = core.getInput('http_proxy') | ||
|
||
const [error, platform] = selectPlatform(core.getInput('platform'), version) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from the above function, this is the only changed line
Co-authored-by: Christian Clauss <[email protected]>
@seanmiddleditch Please approve the |
The merge-base changed after approval.
Merged, thanks! Sorry for the ridiculous delay. |
Should the default version be raised to the current version so things work by default on Ubuntu ARM? |
@seanmiddleditch Just happy to have it merged! @cclauss It should be, I changed it in action.yaml. |
This adds Ninja 1.12.1 (and 1.12.0) support. Ninja ships Linux and Windows ARM binaries since 1.12.0, so I've added some logic to account for that (context: https://github.com/ninja-build/ninja/releases/tag/v1.12.0)
I unfortunately have no way to test if the ARM support works, as Github doesn't have public ARM runners available.
Feel free to roast me on my JS, I normally don't write in it :) I figured the new logic was too complex to shove into a series of ternaries.
I spent way too much time trying to minimize the whitespace changes in dist/index.js, I think there's something up with the file. Saving the file even without formatting creates thousands of whitespace changes that are really hard to get git to ignore.