Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/mw-usb-fs-ci.yml
Original file line number Diff line number Diff line change
@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Evagan2018 change this line to just cbuild USB_Device.csolution.yml --packs. It should then build all project variants including the CustomHW

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

[<img src="https://github.com/Arm-Examples/.github/raw/main/profile/MiddlewareVideo.png" alt="Developing with MDK-Middleware" width="318" height="205" align="left">](
Expand Down Expand Up @@ -45,13 +49,15 @@ 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) |
| [MassStorage](./MassStorage) | USB Mass Storage Device example project (adapted for user application) |
| [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/)
Expand Down