Skip to content
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

CI optimization: build workflow matrix dynamically #47

Merged
merged 2 commits into from
Nov 8, 2023

Conversation

sergejparity
Copy link
Contributor

@sergejparity sergejparity commented Oct 18, 2023

This PR brings even more optimisations to GHA workflow compared to #45

Now I implemented dynamic matrix creation for the check job. It is looking for the PR changes and checks only changed contracts. This will speedup feedback loop even more than previous optimisation:

Also, there is no need anymore to manually update list of the contracts in a workflow.

Example - PR touches 5 contracts:
Without cache - ~44min
With cache - ~7min

Related to https://github.com/paritytech/ci_cd/issues/553

@ascjones ascjones merged commit e4a75d2 into main Nov 8, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants