kit-sdq / programming-lecture-eclipse-artemis

Eclipse-Plugin for grading with the artemis project
Eclipse Public License 2.0
12 stars 7 forks source link

Speedup for Github Actions by using cache for different platforms #309

Closed Shirkanesi closed 1 year ago

Shirkanesi commented 1 year ago

Folow-Up for #288

Checklist

Motivation and Context

Currently building all releases for a PR is painfully slow and takes at least 20 minutes, sometimes up to 30.

This change allows a speedup to typically 10 to 15 minutes (a test-build can be found here), allowing for less time wasted by waiting and therefore prevents frustration.

Description

This PR uses parallelisation for the artifact upload; the upload-action is way slower than the caching action, therefore up-/downloading the build-artifacts into a cache and then uploading every distribution separately as artifact is much more efficient.

Currently only the pr/main action is changed; if you want I'll also adapt the other slow runs to use this methods.

dfuchss commented 1 year ago

@Shirkanesi I think these changes could also be applied to release.yml? Could you perform this change as well. This should increase the release build time :)

github-actions[bot] commented 1 year ago

This PR is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 7 days.