diff --git a/.github/workflows/mw-usb-fs-ci.yml b/.github/workflows/mw-usb-fs-ci.yml new file mode 100644 index 0000000..fd5cefa --- /dev/null +++ b/.github/workflows/mw-usb-fs-ci.yml @@ -0,0 +1,38 @@ +name: Build test + +on: + workflow_dispatch: + pull_request: + branches: [main] + push: + branches: [main] + schedule: + - cron: '0 6 * * 1' + +jobs: + build_and_test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v6 + + - name: Install tools + uses: ARM-software/cmsis-actions/vcpkg@v1 + + - name: Activate Arm tool license + uses: ARM-software/cmsis-actions/armlm@v1 + + - name: Cache packs + uses: actions/cache@v5 + with: + key: cmsis-packs-download + path: /home/runner/.cache/arm/packs + + - name: Initialize CMSIS pack root folder + run: | + cpackget init https://www.keil.com/pack/index.pidx + + - name: Build USB middleware binaries with AC6 compiler + run: | + cbuild USB_Device.csolution.yml --packs --context .+STM32F746NGHx --toolchain AC6 diff --git a/README.md b/README.md index e0fabae..2e10e50 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +[![License](https://img.shields.io/github/license/Arm-Examples/Middleware_USB_FS?label=License)](https://github.com/Arm-Examples/Middleware_USB_FS/blob/main/LICENSE) +[![Build Test](https://img.shields.io/github/actions/workflow/status/Arm-Examples/Middleware_USB_FS/mw-usb-fs-ci.yml?logo=arm&logoColor=0091bd&label=Build%20USB%20Middleware)](./.github/workflows/mw-usb-fs-ci.yml) + + # Using MDK-Middleware with Keil Studio [Developing with MDK-Middleware]( @@ -45,6 +49,7 @@ This is a list of the relevant files and directories: | File/Directory | Description | |----------------|-------------| +| [`.github/workflows/`](./.github/workflows) | GitHub Action file [`mw-usb-fs-ci.yml`](./.github/workflows/mw-usb-fs-ci.yml) builds the HID, MassStorage, and VirtualCOM projects. | | [vcpkg-configuration.json](./vcpkg-configuration.json) | List of tools installed (by Arm Tools Environment Manager) in VS Code | | [USB_Device.csolution.yml](./USB_Device.csolution.yml) | Main solution file containing USB Device example projects | | [HID](./HID) | USB HID Device example project (not used for the application) | @@ -52,6 +57,7 @@ This is a list of the relevant files and directories: | [VirtualCOM](./VirtualCOM) | USB Virtual COM Port Device example project (not used for the application) | | [Board](./Board) | Board support layers for STM32F746G-DISCO and custom hardware | + ## References - [Keil Studio Documentation](https://mdk-packs.github.io/vscode-cmsis-solution-docs/)