diff --git a/.github/workflows/examples.yaml b/.github/workflows/Build_Examples.yml similarity index 88% rename from .github/workflows/examples.yaml rename to .github/workflows/Build_Examples.yml index 255919b7..95032485 100644 --- a/.github/workflows/examples.yaml +++ b/.github/workflows/Build_Examples.yml @@ -1,12 +1,12 @@ -name: Example +name: Build examples on: workflow_dispatch: pull_request: paths: - - .github/workflows/examples.yaml - - CMSIS/RTOS2/FreeRTOS/Examples/* - - CMSIS/RTOS2/FreeRTOS/Include/* - - CMSIS/RTOS2/FreeRTOS/Source/* + - .github/workflows/Build_Examples.yml + - CMSIS/RTOS2/FreeRTOS/Examples/**/* + - CMSIS/RTOS2/FreeRTOS/Include/**/* + - CMSIS/RTOS2/FreeRTOS/Source/**/* - Source/**/* - ARM.CMSIS-FreeRTOS.pdsc push: diff --git a/.github/workflows/cmsis_rv2.yaml b/.github/workflows/cmsis_rv2.yml similarity index 100% rename from .github/workflows/cmsis_rv2.yaml rename to .github/workflows/cmsis_rv2.yml diff --git a/.github/workflows/build.yaml b/.github/workflows/pack.yml similarity index 86% rename from .github/workflows/build.yaml rename to .github/workflows/pack.yml index eae0e08c..f4187ec9 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/pack.yml @@ -1,4 +1,4 @@ -name: Build documentation and pack +name: Build pack on: workflow_dispatch: push: @@ -7,6 +7,11 @@ on: branches: [ main ] release: types: [published] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: pack: name: Generate pack @@ -17,7 +22,7 @@ jobs: fetch-depth: 0 - name: Fetch tags - if: ${{ github.event_name == 'release' }} + if: github.event_name == 'release' run: | git fetch --tags --force diff --git a/README.md b/README.md index 6c5cd2f3..d131476e 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ [![License Apache--2.0](https://img.shields.io/badge/License-Apache--2.0-green?label=License)](https://github.com/Arm-Software/CMSIS-FreeRTOS/blob/main/LICENSE) [![License MIT](https://img.shields.io/badge/License-MIT-yellow?label=License)](https://github.com/Arm-Software/CMSIS-FreeRTOS/blob/main/LICENSE) -[![Build Examples](https://img.shields.io/github/actions/workflow/status/Arm-Software/CMSIS-FreeRTOS/examples.yaml?logo=arm&logoColor=0091bd&label=Build%20Examples)](https://github.com/Arm-Software/CMSIS-FreeRTOS/tree/main/.github/workflows/examples.yaml) -[![RTOS2 Validation](https://img.shields.io/github/actions/workflow/status/Arm-Software/CMSIS-FreeRTOS/examples.yaml?logo=arm&logoColor=0091bd&label=RTOS%20Validation)](https://github.com/Arm-Software/CMSIS-FreeRTOS/tree/main/.github/workflows/cmsis_rv2.yaml) -[![Build pack](https://img.shields.io/github/actions/workflow/status/Arm-Software/CMSIS-FreeRTOS/build.yaml?logo=arm&logoColor=0091bd&label=Build%20pack)](./.github/workflows/build.yaml) +[![Build Examples](https://img.shields.io/github/actions/workflow/status/Arm-Software/CMSIS-FreeRTOS/Build_Examples.yml?logo=arm&logoColor=0091bd&label=Build%20Examples)](https://github.com/Arm-Software/CMSIS-FreeRTOS/tree/main/.github/workflows/Build_Examples.yml) +[![RTOS2 Validation](https://img.shields.io/github/actions/workflow/status/Arm-Software/CMSIS-FreeRTOS/cmsis_rv2.yml?logo=arm&logoColor=0091bd&label=RTOS%20Validation)](https://github.com/Arm-Software/CMSIS-FreeRTOS/tree/main/.github/workflows/cmsis_rv2.yml) +[![Build pack](https://img.shields.io/github/actions/workflow/status/Arm-Software/CMSIS-FreeRTOS/pack.yml?logo=arm&logoColor=0091bd&label=Build%20pack)](./.github/workflows/pack.yml) # CMSIS-FreeRTOS