ci: Makes build parallel to speed up ci

This commit is contained in:
Euripedes Rocha Filho
2025-09-28 19:55:31 +02:00
parent 5800ec1b06
commit 57f729ec66

View File

@@ -2,29 +2,51 @@
# is tested and then merged onto top of master branch. # is tested and then merged onto top of master branch.
.build_template: .build_template:
stage: build stage: build
tags: tags:
- build - build
- internet - internet
timeout: 1h timeout: 1h
script: # rules:
- pip install -U 'idf-ci<1' # # Run build jobs only when source or build configuration changes
- idf-ci build run # - changes:
--parallel-count ${CI_NODE_TOTAL:-1} # - examples/**/*
--parallel-index ${CI_NODE_INDEX:-1} # - test/apps/**/*
# - include/**/*
# - lib/**/*
# - mqtt_client.c
# - mqtt5_client.c
# - Kconfig
# - idf_component.yml
# - .build-test-rules.yml
# - .idf_build_apps.toml
# - .idf_ci.toml
# - when: never
parallel:
matrix:
- PATHS:
- "-p examples/tcp -p examples/mqtt5"
- "-p examples/ws -p examples/wss"
- "-p examples/ssl -p examples/ssl_mutual_auth"
- "-p examples/ssl_psk -p examples/ssl_ds -p examples/custom_outbox"
- "-p test/apps"
script:
- pip install -U 'idf-ci<1'
- echo "Running idf-ci build run ${PATHS}"
- idf-ci build run ${PATHS}
build_idf_v5.3: build_idf_v5.3:
extends: .build_template extends: .build_template
image: espressif/idf:release-v5.3 image: espressif/idf:release-v5.3
build_idf_v5.4: build_idf_v5.4:
extends: .build_template extends: .build_template
image: espressif/idf:release-v5.4 image: espressif/idf:release-v5.4
build_idf_v5.5: build_idf_v5.5:
extends: .build_template extends: .build_template
image: espressif/idf:release-v5.5 image: espressif/idf:release-v5.5
build_idf_latest: build_idf_latest:
extends: .build_template extends: .build_template
image: espressif/idf:latest image: espressif/idf:latest