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

Fix Clang 12.0.1 and add Clang 13 #15

Merged
merged 2 commits into from
Oct 19, 2021
Merged

Fix Clang 12.0.1 and add Clang 13 #15

merged 2 commits into from
Oct 19, 2021

Conversation

muttleyxd
Copy link
Owner

@muttleyxd muttleyxd commented Oct 18, 2021

Fixes #13 and #11

@muttleyxd muttleyxd changed the title Fix Clang 12.0.1 WIP: Fix Clang 12.0.1 Oct 18, 2021
@bernhardmgruber
Copy link
Contributor

Thank you for looking into this!

GitHub Actions is not able to compare version string
(ex. '12.0.1') to an integer value.
Another way to fix this would be extracting major version
from version string.
@muttleyxd muttleyxd force-pushed the clang-12-0-1 branch 2 times, most recently from bcb7f28 to 9f9cf99 Compare October 19, 2021 14:26
@muttleyxd muttleyxd changed the title WIP: Fix Clang 12.0.1 Fix Clang 12.0.1 and add Clang 13 Oct 19, 2021
@muttleyxd muttleyxd merged commit f3a37dd into master Oct 19, 2021
@muttleyxd muttleyxd deleted the clang-12-0-1 branch October 19, 2021 14:27
@muttleyxd muttleyxd mentioned this pull request Oct 19, 2021
@@ -88,7 +90,7 @@ jobs:
curl -LO https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/cfe-${version}.src.tar.xz
curl -LO https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/clang-tools-extra-${version}.src.tar.xz
- name: get llvm-project
if: ${{ matrix.clang-version >= 9 }}
if: ${{ matrix.clang-version >= 9 || matrix.clang-version == '12.0.1' }}
Copy link
Contributor

@WolleTD WolleTD Nov 12, 2021

Choose a reason for hiding this comment

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

It's strange how the string 12.0.1 is apparently neither >= 9 nor < 7 (line 77). I would've expected it to be at least exactly one of those things. Even more so, because 3.9 < 7 actually works.

Edit: Well, 3.9 is a floating point number, 12.0.1 is not, duh. I still wonder what GH actions does there.

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.

clang-format 12.0.1
3 participants