ci: composite actions for setting up dependencies for macOS and Linux runners#691
ci: composite actions for setting up dependencies for macOS and Linux runners#691ExplorerRay wants to merge 2 commits intosolvcon:masterfrom
Conversation
Signed-off-by: Ray Huang <bjhuang@cs.nycu.edu.tw>
| echo "pyside6 path: ${PYSIDE6_PATH}" | ||
| rm -rf ${PYSIDE6_PATH}/Qt/lib/*.framework | ||
| # maunally add homebrew's Qt rpath to PySide6 | ||
| install_name_tool -add_rpath $(qtpaths --install-prefix)/lib ${PYSIDE6_PATH}/QtWidgets.abi3.so |
There was a problem hiding this comment.
I want to mention that I remove some lines like these (L498 - 500), I originally want to fix it if the CI fails.
However, it works without any error, so I think it's okay to remove these things.
There was a problem hiding this comment.
Please keep the lines. They are hard-learnt know-how. It will be hard to recover the knowledge 5 years after we drop them from the file.
But you can keep them commented out in the file if not wanting to have them active. If you can find the PR originally added the lines, it will be great to add it to the comment.
| @@ -0,0 +1,151 @@ | |||
| name: Setup modmesh CI dependencies on Linux | |||
There was a problem hiding this comment.
"Setup" is not a verb (at least was not one). Use "Set up" like what you wrote in the next line.
| @@ -0,0 +1,151 @@ | |||
| name: Setup modmesh CI dependencies on Linux | |||
| description: Sets up the necessary dependencies for running CI tests on Github action Linux runners | |||
There was a problem hiding this comment.
Use correct tense. It's "Set up", not "Sets up".
| echo "pyside6 path: ${PYSIDE6_PATH}" | ||
| rm -rf ${PYSIDE6_PATH}/Qt/lib/*.framework | ||
| # maunally add homebrew's Qt rpath to PySide6 | ||
| install_name_tool -add_rpath $(qtpaths --install-prefix)/lib ${PYSIDE6_PATH}/QtWidgets.abi3.so |
There was a problem hiding this comment.
Please keep the lines. They are hard-learnt know-how. It will be hard to recover the knowledge 5 years after we drop them from the file.
But you can keep them commented out in the file if not wanting to have them active. If you can find the PR originally added the lines, it will be great to add it to the comment.
|
@terrychan999 @chestercheng please help review the changes. It looks good to me but it's too long for me to be sure that everything is right. More eye balls help. |
About the directory name, I use these cases because Linux and macOS are defined in With this, we can further improve the following code into another one refers to this discussion. |
Directory names of mixed cases are not an improvement. The directory names do not need to be identical to variable contents. Let's use all-lower-case directory. |
7e881c0 to
6c48f44
Compare
I just fixed them. Please review again. Thanks. |
yungyuc
left a comment
There was a problem hiding this comment.
LGTM. @terrychan999 @chestercheng please help review.
chestercheng
left a comment
There was a problem hiding this comment.
@ExplorerRay thanks for the refactor.
Moving the environment setup into composite actions helps reduce duplication and makes the workflows easier to maintain.
| runs: | ||
| using: composite | ||
| steps: | ||
| - uses: actions/checkout@v6 |
There was a problem hiding this comment.
The workflow already checkout the repo before. This step may be redundant.
| runs: | ||
| using: composite | ||
| steps: | ||
| - uses: actions/checkout@v6 |
There was a problem hiding this comment.
I just fixed them and CI worked well.
Signed-off-by: Ray Huang <bjhuang@cs.nycu.edu.tw>
6c48f44 to
9cb34cf
Compare
|
@chestercheng make a global comment again if you are good with the change. |
I just add
setup_macOSandsetup_Linuxcomposite actions for dependency and use them indevbuildandlintworkflows to solve part of #677.These two composite actions have one input called
workflowto decide whether some packages should be installed or not.For example,
clang-tidyis only needed when doing lint.