2023-03-03 09:37:17 +01:00
|
|
|
name: Build Windows/MacOS
|
|
|
|
|
|
|
|
on:
|
2023-05-25 11:53:32 +02:00
|
|
|
workflow_dispatch:
|
2023-03-03 09:37:17 +01:00
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- 'src/**'
|
|
|
|
- 'examples/**'
|
|
|
|
- 'lib/**'
|
|
|
|
- 'hw/**'
|
|
|
|
- '.github/workflows/build_win_mac.yml'
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
paths:
|
|
|
|
- 'src/**'
|
|
|
|
- 'examples/**'
|
|
|
|
- 'lib/**'
|
|
|
|
- 'hw/**'
|
|
|
|
- '.github/workflows/build_win_mac.yml'
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
# ---------------------------------------
|
|
|
|
# Build ARM family
|
|
|
|
# ---------------------------------------
|
|
|
|
build-arm:
|
|
|
|
strategy:
|
2023-03-03 09:55:34 +01:00
|
|
|
fail-fast: false
|
2023-03-03 09:37:17 +01:00
|
|
|
matrix:
|
|
|
|
os: [windows-latest, macos-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Setup Python
|
2024-02-08 00:03:13 +01:00
|
|
|
uses: actions/setup-python@v5
|
2023-03-03 09:37:17 +01:00
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
|
|
|
|
|
|
|
- name: Install ARM GCC
|
|
|
|
uses: carlosperate/arm-none-eabi-gcc-action@v1
|
|
|
|
with:
|
2023-03-06 05:16:21 +01:00
|
|
|
release: '10.3-2021.10'
|
2023-03-03 09:37:17 +01:00
|
|
|
|
|
|
|
- name: Checkout TinyUSB
|
2023-12-18 14:07:17 +01:00
|
|
|
uses: actions/checkout@v4
|
2023-03-03 09:37:17 +01:00
|
|
|
|
|
|
|
- name: Get Dependencies
|
2023-06-15 08:11:21 +02:00
|
|
|
run: python3 tools/get_deps.py stm32f4
|
2023-03-03 09:37:17 +01:00
|
|
|
|
|
|
|
- name: Build
|
2023-11-23 05:46:39 +01:00
|
|
|
run: python3 tools/build_make.py stm32f4 stm32f411disco
|