Skip to content

Commit

Permalink
Speedup CI builds
Browse files Browse the repository at this point in the history
Only build all binaries on main/release.

Signed-off-by: SuperQ <[email protected]>
  • Loading branch information
SuperQ committed Jul 25, 2022
1 parent d335e07 commit 96ba67d
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,21 @@ workflows:
only: /.*/
- prometheus/build:
name: build
parallelism: 8
parallelism: 3
promu_opts: "-p linux/amd64 -p windows/amd64 -p linux/arm64 -p darwin/amd64 -p darwin/arm64 -p linux/386"
filters:
tags:
only: /.*/
ignore: /^v2(\.[0-9]+){2}(-.+|[^-.]*)$/
branches:
ignore: /^(main|release-.*|.*build-all.*)$/
- prometheus/build:
name: build_all
parallelism: 12
filters:
branches:
only: /^(main|release-.*|.*build-all.*)$/
tags:
only: /^v2(\.[0-9]+){2}(-.+|[^-.]*)$/
- mixin:
filters:
tags:
Expand All @@ -138,7 +149,7 @@ workflows:
requires:
- test_frontend
- test
- build
- build_all
filters:
branches:
only: main
Expand All @@ -147,7 +158,7 @@ workflows:
requires:
- test_frontend
- test
- build
- build_all
filters:
tags:
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
Expand Down

0 comments on commit 96ba67d

Please sign in to comment.