Stephane-D / SGDK

SGDK - A free and open development kit for the Sega Mega Drive
https://www.patreon.com/SGDK
MIT License
1.78k stars 189 forks source link

ci: Fix cancelation of Docker builds in CI #331

Closed joeyparrish closed 6 months ago

joeyparrish commented 6 months ago

The Docker publication workflow tries to optimize and avoid rebuilding GCC if nothing has changed. However, the very first workflow run that should have created the very first GCC Docker image was canceled.

This changes the concurrency setting on the workflow so that it does not cancel an existing workflow. This way, if a series of changes are merged rapidly, and an earlier one requires a GCC rebuild, the later workflow runs will see that image.

This allows us to keep the optimization of skipping GCC rebuilds most of the time.

joeyparrish commented 6 months ago

Canceled build, for reference: https://github.com/Stephane-D/SGDK/actions/runs/9180679521