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
This commit is contained in:
Ha Thach
2024-05-13 16:41:11 +07:00
committed by GitHub
parent d707ea56b4
commit 6f47746e5f
8 changed files with 83 additions and 36 deletions

View File

@@ -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:

View File

@@ -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:

View File

@@ -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: