Skip to content
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 new toolchain release 10.3-2021.07 #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

carlosperate
Copy link

As the version format has changed this required some minor tweaks to the code as well.
I'll add notes to the PR.

@@ -14,7 +14,7 @@ function urlExt(s: string): string {
const components = u.path?.split('/')
if (components && components?.length > 0) {
const last = components[components?.length - 1]
const dot = last.indexOf('.')
const dot = last.lastIndexOf('.')
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the version format contains dots (.) urlExt() was returning .3-2021.07.tar.bz2 as the extension. So with this change we only look at the last part of the extension.

This also required a change in the switch case below to match .bz2 instead of .tar.bz2.

switch (platform) {
case 'darwin':
osName = 'mac'
archOs = 'mac'
ext = 'tar.bz2'
macExtraOS = '-10.14.6'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The macOS download now contains the OS version (I assume used to build GCC) in the filename, so ${MAC_EXTRA_OS} has been added to the URL to be replaced.

Comment on lines -90 to -91
const parts = version.split('-')
if (parts.length !== 3) {
Copy link
Author

@carlosperate carlosperate Sep 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the version string now only contains two - this needed to be updated as well.

It looks to me that thiss was basically checking if the version inputted by the user was valid, so I've replaced it with a check for the key in the versions object: if (!versions.hasOwnProperty(version))

@carlosperate
Copy link
Author

Btw, even though the CI hasn't started in the PR yet (needs approval first), the tests do pass on my fork:
https://github.com/carlosperate/arm-none-eabi-gcc/runs/3532637354

@carlosperate
Copy link
Author

Hola @fiam,

Just wondering if you can review this PR, or in the meantime approve the workflow so that the CI can run?

Thanks!

@carlosperate
Copy link
Author

carlosperate commented Nov 3, 2021

If anybody arrives here looking for the latest release I've added it to my fork, together with a few more features: https://github.com/carlosperate/arm-none-eabi-gcc-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant