From 6b74dbe7af8aecd5a538438cd1c21c463cff9fca Mon Sep 17 00:00:00 2001 From: ATT_POWER <34850640+yglsaltfish@users.noreply.github.com> Date: Wed, 30 Oct 2024 22:06:39 +0800 Subject: [PATCH] CI: add document ignore and quick-ci mode (#63) * CI: change build worlflow image tag from v20240927 to latest * ci: Optimize GitHub Actions workflow triggers and test execution - Ignore changes in the .github and document directories to avoid unnecessary workflow triggers - Add 'quick-ci' label to control test execution and improve CI efficiency * choro: add quick ci mode --------- Co-authored-by: yuguanlin --- .github/workflows/Main.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Main.yml b/.github/workflows/Main.yml index a722dde06..f248b8a9a 100644 --- a/.github/workflows/Main.yml +++ b/.github/workflows/Main.yml @@ -2,6 +2,9 @@ name: CI/CD Workflow on: pull_request_target: + paths-ignore: + - '.github/**' + - 'document/**' branches: - '*' types: [labeled] @@ -10,7 +13,7 @@ on: jobs: check: - if: github.event.label.name == 'ci' || github.event_name == 'release' + if: github.event.label.name == 'ci' || github.event.label.name == 'quick-ci' || github.event_name == 'release' uses: ./.github/workflows/cppcheck.yml with: image_name: registry.agibot.com/agibot-tech/gitlab-ci @@ -28,6 +31,7 @@ jobs: needs: [check] test_gcc11_arm64: + if: github.event.label.name != 'quick-ci' uses: ./.github/workflows/test-workflow.yml with: image_name: registry.agibot.com/agibot-tech/aimrt_ci-arm64-gcc11-ubuntu22_04 @@ -37,6 +41,7 @@ jobs: needs: [test_gcc11_amd64] test_msvc: + if: github.event.label.name != 'quick-ci' uses: ./.github/workflows/test-msvc-workflow.yml with: run_platform: msvc @@ -44,6 +49,7 @@ jobs: needs: [test_gcc11_amd64] test_gcc12_amd64: + if: github.event.label.name != 'quick-ci' uses: ./.github/workflows/test-workflow.yml with: image_name: registry.agibot.com/agibot-tech/aimrt_ci-amd64-gcc12-ubuntu22_04 @@ -53,6 +59,7 @@ jobs: needs: [test_gcc11_amd64] test_gcc13_amd64: + if: github.event.label.name != 'quick-ci' uses: ./.github/workflows/test-workflow.yml with: image_name: registry.agibot.com/agibot-tech/aimrt_ci-amd64-gcc13-ubuntu22_04 @@ -62,6 +69,7 @@ jobs: needs: [test_gcc11_amd64] test_clang15_amd64: + if: github.event.label.name != 'quick-ci' uses: ./.github/workflows/test-workflow.yml with: image_name: registry.agibot.com/agibot-tech/aimrt_ci-amd64-clang15-ubuntu22_04 @@ -71,6 +79,7 @@ jobs: needs: [test_gcc11_amd64] test_clang16_amd64: + if: github.event.label.name != 'quick-ci' uses: ./.github/workflows/test-workflow.yml with: image_name: registry.agibot.com/agibot-tech/aimrt_ci-amd64-clang16-ubuntu22_04 @@ -80,6 +89,7 @@ jobs: needs: [test_gcc11_amd64] test_clang17_amd64: + if: github.event.label.name != 'quick-ci' uses: ./.github/workflows/test-workflow.yml with: image_name: registry.agibot.com/agibot-tech/aimrt_ci-amd64-clang17-ubuntu22_04 @@ -89,6 +99,7 @@ jobs: needs: [test_gcc11_amd64] test_clang18_amd64: + if: github.event.label.name != 'quick-ci' uses: ./.github/workflows/test-workflow.yml with: image_name: registry.agibot.com/agibot-tech/aimrt_ci-amd64-clang18-ubuntu22_04