-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
GitHub Actions should just build Linux, Mac, Windows per-push and PR #6624
Comments
As a 2nd tier goal, I think it would be nice to be able to trigger (all) workflows when some condition is met. |
For reference, you can filter triggers by paths like: on:
pull_request:
paths:
- '**/ps2/*' You can also enable a manual trigger button on the GitHub Actions GUI like so: on:
workflow_dispatch: So if we replaced on: [push, pull_request] with on:
push:
pull_request:
paths:
- '**/ps2/*'
- '.github/workflows/ps2.yaml'
workflow_dispatch: Then that would run:
|
Something I'm just realizing: GitHub Actions gives you 2000 minutes of CPU time per month for private repositories. They are free and unlimited for public repos. It would still be nice to get faster feedback on commits, but this is no longer a concern of going over some limit. So...is there a way to signal to GitHub Actions "I care about these builds most, please do them first and the rest are nice to see the results of eventually"? Maybe it doesn't matter, since there's probably a massive build farm churning through these tasks on GitHub's end. |
I don't know of a way to prioritize a workflow job, there is an issue though. |
I created a proof of concept to limit the number of platforms to build for at my fork. example:
It melds all workflows in one big file: this is done to make all build jobs depend on a master job. What platforms are build is controlled by requested_jobs = extract_jobs_from_commit_message()
if not requested_jobs:
requested_jobs = REDUCED_JOBS
if event.type == "push":
if event.branch in ("main", "SDL2"):
requested_jobs = ALL_JOBS
elif event.type == "pull_request":
requested_jobs = ALL_JOBS It (currently) has no finer granularity then platforms. It has pros and cons.
cons;
|
Originally posted by @icculus in #3519 (comment)
The text was updated successfully, but these errors were encountered: