Skip to content

Commit 6772b26

Browse files
committed
enable cmake build for f4 and h5
1 parent ac8cbb7 commit 6772b26

File tree

1 file changed

+11
-29
lines changed

1 file changed

+11
-29
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -120,37 +120,19 @@ jobs:
120120
# Build ARM with CMake
121121
# ---------------------------------------
122122
arm-cmake:
123-
runs-on: ubuntu-latest
123+
needs: set-matrix
124+
uses: ./.github/workflows/build_util.yml
124125
strategy:
125126
fail-fast: false
126127
matrix:
127-
board:
128+
port:
128129
# Alphabetical order by family
129-
- 'metro_m7_1011'
130+
#- 'metro_m7_1011'
130131
# - 'stm32f303disco' # overflows flash
131-
- 'stm32f411ve_discovery'
132-
- 'stm32h563_nucleo'
133-
134-
steps:
135-
- name: Checkout
136-
uses: actions/checkout@v4
137-
with:
138-
submodules: true
139-
140-
- name: Fetch tags
141-
run: git fetch --tags
142-
143-
- name: Install ARM GCC
144-
uses: carlosperate/arm-none-eabi-gcc-action@v1
145-
with:
146-
release: '11.2-2022.02'
147-
148-
- name: Get Dependencies
149-
run: |
150-
sudo apt install -y ninja-build
151-
python tools/get_deps.py --board ${{ matrix.board }}
152-
153-
- name: Build
154-
run: |
155-
cmake . -B _build -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel -DBOARD=${{ matrix.board }}
156-
cmake --build _build
132+
- 'stm32f4'
133+
- 'stm32h5'
134+
with:
135+
port: ${{ matrix.port }}
136+
boards: ${{ toJSON(fromJSON(needs.set-matrix.outputs.json)[matrix.port].board) }}
137+
build-system: 'cmake'
138+
toolchain: 'arm-gcc'

0 commit comments

Comments
 (0)