Skip to content

Commit e92583f

Browse files
committed
try adding build for windows and macos
1 parent 34798ff commit e92583f

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/build_win_mac.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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+
matrix:
31+
os: [windows-latest, macos-latest]
32+
runs-on: ${{ matrix.os }}
33+
34+
steps:
35+
- name: Setup Python
36+
uses: actions/setup-python@v4
37+
with:
38+
python-version: '3.x'
39+
40+
- name: Install ARM GCC
41+
uses: carlosperate/arm-none-eabi-gcc-action@v1
42+
with:
43+
release: '11.2-2022.02'
44+
45+
- name: Checkout TinyUSB
46+
uses: actions/checkout@v3
47+
48+
- name: Checkout common submodules in lib
49+
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip
50+
51+
- name: Get Dependencies
52+
run: python3 tools/get_dependencies.py stm32f0
53+
54+
- name: Build
55+
run: python3 tools/build_family.py stm32f0

0 commit comments

Comments
 (0)