Speedup CI builds
Only build all binaries on main/release. Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
parent
d335e07150
commit
96ba67da83
|
@ -125,10 +125,21 @@ workflows:
|
||||||
only: /.*/
|
only: /.*/
|
||||||
- prometheus/build:
|
- prometheus/build:
|
||||||
name: 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:
|
filters:
|
||||||
tags:
|
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:
|
- mixin:
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
|
@ -138,7 +149,7 @@ workflows:
|
||||||
requires:
|
requires:
|
||||||
- test_frontend
|
- test_frontend
|
||||||
- test
|
- test
|
||||||
- build
|
- build_all
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only: main
|
only: main
|
||||||
|
@ -147,7 +158,7 @@ workflows:
|
||||||
requires:
|
requires:
|
||||||
- test_frontend
|
- test_frontend
|
||||||
- test
|
- test
|
||||||
- build
|
- build_all
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
|
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
|
||||||
|
|
Loading…
Reference in New Issue