GitHub Actions Improvements
See original GitHub issuePrerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Running the latest version of Constellation
- Attached the Support Package via
Help
>Support Package
- Checked the FAQs: https://github.com/constellation-app/constellation/wiki/FAQ
- Checked that your issue isn’t already filed: https://github.com/constellation-app/constellation/issues
- Checked that there is not already a module that provides the described functionality: https://github.com/constellation-app/constellation/wiki/Catalogue-of-Repositories
Description
Following the conversion from TravisCI to GitHub Actions #993 , there are a few improvements that could be made to round this ticket out.
1.Cache the downloaded dependencies within the Docker container. (tried using the cache action and mounting it to the correct folder on Docker but it seems to always cache nothing even though there is only one .ivy2/cache directory at /root/) (Fixed with #1021 )
2.Add an action to package up the release on tagged versions.
Steps to Reproduce
1. Trigger a github action to run, and view the logging in the checks tab to ensure that the cache is reloaded between triggers of docker containers. The cache is stored with a hash of the ivy.xml file.
Expected behaviour: the cached dependencies will be reloaded into the correct docker .xml file and will not dowload any further dependencies if working correctly.
Actual behaviour: The dependency is compared, found to be correct - and then loaded into docker. The cache is empty at that point. Where it should be full of downloads.
Reproduces how often: 100%
Additional Information
The cache action is specified in .github -> workflows ->
build-and-scan.yml
The cache directory is set at ${HOME}/.ivy2/cache
This is then mounted when launching the docker container.
Saving the cache seems to work at correct time, but quite possibly doesn’t save the information into the cache for some reason or another.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (3 by maintainers)
Top GitHub Comments
Have started looking at this more seriously now 😃 I can see the existing .yml files in https://github.com/constellation-app/constellation/tree/master/.github/workflows and doing research on github actions so I can get my head around them
Gulp.