Skip to content

Only install clang-format if it is really missing #136

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

Merged
merged 1 commit into from
May 2, 2022

Conversation

eringerli
Copy link
Contributor

@eringerli eringerli commented May 1, 2022

As the default image already has v10, v11 (default) and v12 installed, you don't have to install v8 and don't even use it. This removes the need for a long (most of the time 2 minutes) mirror search or even call apt-get install in the first place. This shortens the time spent in actions_install.sh from about 2:30min to 6s, which is 25x faster.

This is similar to PR #135, but wraps it in a conditional: if the search for /usr/bin/clang-format fails, install it. This should be fully backwards compatible.

This is the output of clang-format --version with this change:
Screenshot_20220501_201159

This as it was before:
Screenshot_20220501_201122

There is no difference, as both times the defaut clang-format gets used.

As the default image already has v10, v11 (default) and v12 installed,
you don't have to install v8 and don't even use it. This removes the
need for a long (most of the time 2 minutes) mirror search or even call
'apt-get install' in the first place. This shortens the time spent in
actions_install.sh from about 2:30min to 6s, which is 25x faster.
@eringerli eringerli force-pushed the remove-unneded-apg-get-install branch from f9fea72 to a4b6ff8 Compare May 1, 2022 19:41
@ladyada ladyada merged commit 60f4996 into adafruit:master May 2, 2022
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.

2 participants