-
Notifications
You must be signed in to change notification settings - Fork 8
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
Modernize GH Actions #78
Conversation
JostMigenda
commented
Apr 17, 2024
•
edited
Loading
edited
- Update versions of various actions (removes warnings/errors due to deprecated/unsupported versions)
- Update/remove arguments to some actions, where new versions require it
- Update gcc, g++ versions under ubuntu-20.04
Updates the action to Node 20, see https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
v1 is unsupported since 2022; several arguments were changed/removed since then. See https://github.com/codecov/codecov-action/tree/v3?tab=readme-ov-file#codecov-github-action
h/t to @LouiseABowler (discussion on Slack)
⚡ Code Analysis Results ⚡ 🔴 Cppcheck found 18 issues! Click here to see details.CemrgApp/CemrgApp/Modules/CemrgAppModule/src/CemrgCommonUtils.cpp Lines 1813 to 1818 in 466344b
!Line: 1813 - style: Redundant initialization for 'scalars'. The initialized value is overwritten before it is read. [redundantInitialization] CemrgApp/CemrgApp/Modules/CemrgAppModule/src/CemrgCommonUtils.cpp Lines 1806 to 1811 in 466344b
!Line: 1806 - note: scalars is initialized CemrgApp/CemrgApp/Modules/CemrgAppModule/src/CemrgCommonUtils.cpp Lines 1813 to 1818 in 466344b
!Line: 1813 - note: scalars is overwritten CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresClipperView.h Lines 55 to 60 in 466344b
!Line: 55 - style: The class 'AtrialFibresClipperView' does not have a constructor although it has private member variables. [noConstructor] CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresView.h Lines 66 to 71 in 466344b
!Line: 66 - style: The class 'AtrialFibresView' does not have a constructor although it has private member variables. [noConstructor] CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresClipperView.cpp Lines 450 to 455 in 466344b
!Line: 450 - style: Redundant initialization for 'radii'. The initialized value is overwritten before it is read. [redundantInitialization] CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresClipperView.cpp Lines 449 to 454 in 466344b
!Line: 449 - note: radii is initialized CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresClipperView.cpp Lines 450 to 455 in 466344b
!Line: 450 - note: radii is overwritten CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresLandmarksView.h Lines 53 to 58 in 466344b
!Line: 53 - style: The class 'AtrialFibresLandmarksView' does not have a constructor although it has private member variables. [noConstructor] CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresLandmarksView.cpp Lines 392 to 397 in 466344b
!Line: 392 - style: The scope of the variable 'distance' can be reduced. [variableScope] CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresVisualiseView.h Lines 50 to 55 in 466344b
!Line: 50 - style: The class 'AtrialFibresVisualiseView' does not have a constructor although it has private member variables. [noConstructor] CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresView.cpp Lines 1795 to 1800 in 466344b
!Line: 1795 - style: Condition '!userInputAccepted' is always true [knownConditionTrueFalse] CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresView.cpp Lines 1793 to 1798 in 466344b
!Line: 1793 - note: Assignment 'userInputAccepted=false', assigned value is 0 CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresView.cpp Lines 1795 to 1800 in 466344b
!Line: 1795 - note: Condition '!userInputAccepted' is always true CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresView.cpp Lines 2340 to 2345 in 466344b
!Line: 2340 - style: Variable 'segImage' is assigned a value that is never used. [unreadVariable] CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresView.cpp Lines 193 to 198 in 466344b
!Line: 193 - style: Redundant initialization for 'reply1'. The initialized value is overwritten before it is read. [redundantInitialization] CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresView.cpp Lines 190 to 195 in 466344b
!Line: 190 - note: reply1 is initialized CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresView.cpp Lines 193 to 198 in 466344b
!Line: 193 - note: reply1 is overwritten |
The test action runs much farther now, which is nice to see; but the build step still fails with some references to gcc-6 and g++-6, even though I’ve eliminated those from all .yml files. So I’m not quite sure where that comes … unless it is in the precompiled Build folder that it’s downloading in the first step? 🤔 On a separate note: I notice that |
Thank you Jost, these are great updates. I agree that, as you mention, the references to older gcc versions would come from the prebuild folders downloaded. The solution would be to make these for the right versions. So, one in macOS, one in Ubuntu and one in Windows. These prebuild folders would be generated once we confirm the build instructions. So that's on my plate at the moment. I'll accept the merge and we can pause till I provide the build folders. A question, we would need an intel mac and an arm mac prebuild folder, in case we manage arm, right? |
Not necessarily. In principle, Qt versions that support ARM Macs also support cross builds or universal binaries; but how well that works in practice remains to be seen after we’ve upgraded Qt to a more recent version. |