ci: use main branch of ci/actions/common

This commit is contained in:
Fu Hanxi
2026-09-03 20:25:13 +02:00
parent 64d767f050
commit 88b2ffcde6
4 changed files with 9 additions and 46 deletions
+3 -14
View File
@@ -2,25 +2,15 @@
include: include:
- project: "ci/actions/common" - project: "ci/actions/common"
ref: "v2"
file: file:
- "templates/stable/default-workflow.yml" - "templates/stable/default-workflow.yml"
- "templates/idf/pre_check.yml" - "templates/idf/v2/pre_check.yml"
- "templates/idf/pre-commit.yml"
- "templates/idf/build.yml" - "templates/idf/build.yml"
- "templates/idf/deploy-github.yml" - "templates/idf/deploy-github.yml"
- "templates/idf/deploy-docs.yml" - "templates/idf/deploy-docs.yml"
- "templates/idf/integration-test.yml" - "templates/idf/integration-test.yml"
- project: "ci/actions/common" - "templates/idf/sync-files.yml"
ref: "v2"
file: "templates/idf/sync-files.yml"
inputs:
job_name: "sync-pre-commit-config"
remote_repo_url: "https://__token__:${CI_SYNC_REPO_TOKEN}@${CI_SERVER_FQDN}/ci/images.git"
ref_name: "ci/sync_idf_pre_commit_config"
file_mappings:
- ".pre-commit-config.yaml:pre-commit/idf/.pre-commit-config.v6.0.yaml"
changes:
- ".pre-commit-config.yaml"
- project: "ci/actions/common" - project: "ci/actions/common"
file: "templates/idf/build-docs.yml" file: "templates/idf/build-docs.yml"
inputs: inputs:
@@ -42,7 +32,6 @@ include:
- ".gitlab/ci/pre_check.yml" - ".gitlab/ci/pre_check.yml"
- ".gitlab/ci/pre_deploy.yml" - ".gitlab/ci/pre_deploy.yml"
- ".gitlab/ci/static-code-analysis.yml" - ".gitlab/ci/static-code-analysis.yml"
- ".gitlab/ci/pre_commit.yml"
- ".gitlab/ci/build.yml" - ".gitlab/ci/build.yml"
- ".gitlab/ci/host-test.yml" - ".gitlab/ci/host-test.yml"
- ".gitlab/ci/post_deploy.yml" - ".gitlab/ci/post_deploy.yml"
+1 -1
View File
@@ -17,7 +17,6 @@ stages:
include: include:
- project: "ci/actions/common" - project: "ci/actions/common"
ref: "v2"
file: "templates/idf/common-scripts.yml" file: "templates/idf/common-scripts.yml"
inputs: inputs:
ci_python_constraint_file: "espidf.constraints.v6.0.txt" ci_python_constraint_file: "espidf.constraints.v6.0.txt"
@@ -69,6 +68,7 @@ variables:
ESP_ENV_IMAGE: "${CI_REGISTRY}/ci/images/idf-v6.0:1" ESP_ENV_IMAGE: "${CI_REGISTRY}/ci/images/idf-v6.0:1"
ESP_IDF_DOC_ENV_IMAGE: "${CI_REGISTRY}/ci/images/idf-v6.0-docs:1" ESP_IDF_DOC_ENV_IMAGE: "${CI_REGISTRY}/ci/images/idf-v6.0-docs:1"
TARGET_TEST_ENV_IMAGE: "${CI_REGISTRY}/ci/images/idf-v6.0-target-test:1" TARGET_TEST_ENV_IMAGE: "${CI_REGISTRY}/ci/images/idf-v6.0-target-test:1"
PRE_COMMIT_ENV_IMAGE: "${CI_REGISTRY}/ci/images/pre-commit-idf-v6.0:1"
# Set this variable to the branch of idf-constraints repo in order to test a custom Python constraint file. The # Set this variable to the branch of idf-constraints repo in order to test a custom Python constraint file. The
# branch name must be without the remote part ("origin/"). Keep the variable empty in order to use the constraint # branch name must be without the remote part ("origin/"). Keep the variable empty in order to use the constraint
-31
View File
@@ -1,34 +1,3 @@
.check_pre_commit_template:
extends:
- .before_script:minimal
stage: pre_check
image: "${CI_REGISTRY}/ci/images/pre-commit-idf-v6.0:1"
tags: [pre-commit]
variables:
# Both shiny and brew runners can pick this job
GIT_STRATEGY: fetch
GIT_DEPTH: 1
SUBMODULES_TO_FETCH: "all"
needs:
- pipeline_variables
script:
- fetch_submodules
- pre-commit run --files $MODIFIED_FILES
- pre-commit run --hook-stage post-commit validate-sbom-manifest
check_pre_commit:
extends:
- .check_pre_commit_template
rules:
- if: '($CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_BRANCH =~ /^release\/v/) && $CI_PIPELINE_SOURCE == "push"'
when: never
- when: on_success
cache:
- key: submodule-cache-${LATEST_GIT_TAG}
paths:
- .cache/submodule_archives
policy: pull
check_powershell: check_powershell:
extends: extends:
- .before_script:minimal - .before_script:minimal
@@ -35,6 +35,11 @@ generate_presigned_json:
script: script:
- idf-ci gitlab generate-presigned-json --output presigned.json - idf-ci gitlab generate-presigned-json --output presigned.json
include:
- project: "ci/actions/common"
file:
- "templates/idf/app-size-metrics-full-report.yml"
generate_pytest_child_pipeline: generate_pytest_child_pipeline:
# finally, we can get some use out of the default behavior that downloads all artifacts from the previous stage # finally, we can get some use out of the default behavior that downloads all artifacts from the previous stage
stage: assign_test stage: assign_test