Skip to content

Commit 4c796b8

Browse files
committed
try to build with cmake on ci
1 parent c0e4c02 commit 4c796b8

File tree

2 files changed

+64
-1
lines changed

2 files changed

+64
-1
lines changed

.github/workflows/cmake_arm.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: CMake Build ARM
2+
3+
on:
4+
push:
5+
paths:
6+
- 'src/**'
7+
- 'examples/**'
8+
- 'lib/**'
9+
- 'hw/**'
10+
- '.github/workflows/cmake_arm.yml'
11+
pull_request:
12+
branches: [ master ]
13+
paths:
14+
- 'src/**'
15+
- 'examples/**'
16+
- 'lib/**'
17+
- 'hw/**'
18+
- '.github/workflows/cmake_arm.yml'
19+
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
22+
cancel-in-progress: true
23+
24+
jobs:
25+
# ---------------------------------------
26+
# Build ARM family
27+
# ---------------------------------------
28+
build-arm:
29+
runs-on: ubuntu-latest
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
family:
34+
# Alphabetical order
35+
- 'imxrt'
36+
steps:
37+
- name: Setup Python
38+
uses: actions/setup-python@v4
39+
with:
40+
python-version: '3.x'
41+
42+
- name: Install ARM GCC
43+
uses: carlosperate/arm-none-eabi-gcc-action@v1
44+
with:
45+
release: '11.2-2022.02'
46+
47+
- name: Checkout TinyUSB
48+
uses: actions/checkout@v3
49+
50+
- name: Get Dependencies
51+
run: python3 tools/get_family_deps.py ${{ matrix.family }}
52+
53+
- name: Build
54+
run: |
55+
mkdir -p examples/build
56+
cd examples/build
57+
cmake -DFAMILY=${{ matrix.family }} -DBOARD=mimxrt1060_evk ..
58+
cmake --build .

examples/device/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ family_add_subdirectory(hid_generic_inout)
2222
family_add_subdirectory(hid_multiple_interface)
2323
family_add_subdirectory(midi_test)
2424
family_add_subdirectory(msc_dual_lun)
25-
family_add_subdirectory(net_lwip_webserver)
25+
26+
# FIXME temp skip net_lwip_webserver for imxrt for now
27+
if (NOT ${FAMILY} STREQUAL "imxrt")
28+
family_add_subdirectory(net_lwip_webserver)
29+
endif()
30+
2631
family_add_subdirectory(uac2_headset)
2732
family_add_subdirectory(usbtmc)
2833
family_add_subdirectory(video_capture)

0 commit comments

Comments
 (0)