diff options
| author | Ha Thach <[email protected]> | 2024-05-13 16:41:11 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-13 16:41:11 +0700 |
| commit | 6f47746e5ff6e33b25e12742d62bcbf69f8a27a0 (patch) | |
| tree | e4892f86e7bc788b31732971f4017513c310ed49 /.github/workflows | |
| parent | d707ea56b47e2fbbe5eaa4854a427a3a7873dea3 (diff) | |
more ci update (#2642)
* Circi use small docker
* caching espressif docker image
* only run make job on pull request or push to master
* hw test run on pull request only, rename build_cmake to build.yml
* enable all ci build, cmake(clang) and make(*) only run with pull_request or push to master
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml (renamed from .github/workflows/build_cmake.yml) | 11 | ||||
| -rw-r--r-- | .github/workflows/build_iar.yml | 9 | ||||
| -rw-r--r-- | .github/workflows/hil_test.yml | 10 |
3 files changed, 9 insertions, 21 deletions
diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build.yml index 4723cf8d9..d51e1c92a 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,7 @@ on: - 'tools/get_deps.py' - 'tools/build.py' - '.github/actions/**' - - '.github/workflows/build_cmake.yml' + - '.github/workflows/build.yml' - '.github/workflows/build_util.yml' - '.github/workflows/ci_set_matrix.py' pull_request: @@ -24,7 +24,7 @@ on: - 'tools/get_deps.py' - 'tools/build.py' - '.github/actions/**' - - '.github/workflows/build_cmake.yml' + - '.github/workflows/build.yml' - '.github/workflows/build_util.yml' - '.github/workflows/ci_set_matrix.py' concurrency: @@ -67,6 +67,10 @@ jobs: - 'arm-gcc' - 'msp430-gcc' - 'riscv-gcc' + if: >- + matrix.toolchain != 'arm-clang' || + github.event_name == 'pull_request' || + (github.event_name == 'push' && github.ref == 'refs/heads/master') with: build-system: 'cmake' toolchain: ${{ matrix.toolchain }} @@ -77,6 +81,9 @@ jobs: # Build Make # --------------------------------------- make: + if: >- + github.event_name == 'pull_request' || + (github.event_name == 'push' && github.ref == 'refs/heads/master') needs: set-matrix uses: ./.github/workflows/build_util.yml strategy: diff --git a/.github/workflows/build_iar.yml b/.github/workflows/build_iar.yml index 34dbda192..c8a095c18 100644 --- a/.github/workflows/build_iar.yml +++ b/.github/workflows/build_iar.yml @@ -2,15 +2,6 @@ name: Build IAR on: workflow_dispatch: - push: - paths: - - 'src/**' - - 'examples/**' - - 'lib/**' - - 'hw/**' - - 'tools/get_deps.py' - - 'test/hil/**' - - '.github/workflows/build_iar.yml' pull_request: branches: [ master ] paths: diff --git a/.github/workflows/hil_test.yml b/.github/workflows/hil_test.yml index 796ff32dc..eb3f2cbab 100644 --- a/.github/workflows/hil_test.yml +++ b/.github/workflows/hil_test.yml @@ -2,16 +2,6 @@ name: Hardware Test on: workflow_dispatch: - push: - paths: - - 'src/**' - - 'examples/**' - - 'lib/**' - - 'hw/**' - - 'test/hil/**' - - 'tools/get_deps.py' - - '.github/actions/**' - - '.github/workflows/hil_test.yml' pull_request: branches: [ master ] paths: |
