Skip to content

Commit 66da95a

Browse files
authored
Merge pull request hathach#1938 from hathach/update-build
Fix build on windows and macos
2 parents a83cef5 + ec8c292 commit 66da95a

File tree

46 files changed

+166
-113
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+166
-113
lines changed

.github/workflows/build_win_mac.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Build Windows/MacOS
2+
3+
on:
4+
push:
5+
paths:
6+
- 'src/**'
7+
- 'examples/**'
8+
- 'lib/**'
9+
- 'hw/**'
10+
- '.github/workflows/build_win_mac.yml'
11+
pull_request:
12+
branches: [ master ]
13+
paths:
14+
- 'src/**'
15+
- 'examples/**'
16+
- 'lib/**'
17+
- 'hw/**'
18+
- '.github/workflows/build_win_mac.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+
strategy:
30+
fail-fast: false
31+
matrix:
32+
os: [windows-latest, macos-latest]
33+
runs-on: ${{ matrix.os }}
34+
35+
steps:
36+
- name: Setup Python
37+
uses: actions/setup-python@v4
38+
with:
39+
python-version: '3.x'
40+
41+
- name: Install ARM GCC
42+
uses: carlosperate/arm-none-eabi-gcc-action@v1
43+
with:
44+
release: '10.3-2021.10'
45+
46+
- name: Checkout TinyUSB
47+
uses: actions/checkout@v3
48+
49+
- name: Checkout common submodules in lib
50+
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip
51+
52+
- name: Get Dependencies
53+
run: python3 tools/get_dependencies.py stm32f4
54+
55+
- name: Build
56+
run: python3 tools/build_family.py stm32f4 stm32f411disco

examples/device/audio_4_channel_mic/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
include ../../../tools/top.mk
21
include ../../make.mk
32

43
INC += \

examples/device/audio_test/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
include ../../../tools/top.mk
21
include ../../make.mk
32

43
INC += \

examples/device/audio_test_multi_rate/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
include ../../../tools/top.mk
21
include ../../make.mk
32

43
INC += \

examples/device/board_test/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
include ../../../tools/top.mk
21
include ../../make.mk
32

43
INC += \

examples/device/cdc_dual_ports/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
include ../../../tools/top.mk
21
include ../../make.mk
32

43
INC += \

examples/device/cdc_msc/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
include ../../../tools/top.mk
21
include ../../make.mk
32

43
INC += \

examples/device/cdc_msc_freertos/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
DEPS_SUBMODULES += lib/FreeRTOS-Kernel
22

3-
include ../../../tools/top.mk
43
include ../../make.mk
54

65
FREERTOS_SRC = lib/FreeRTOS-Kernel

examples/device/dfu/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
include ../../../tools/top.mk
21
include ../../make.mk
32

43
INC += \

examples/device/dfu_runtime/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
include ../../../tools/top.mk
21
include ../../make.mk
32

43
INC += \

0 commit comments

Comments
 (0)