-
Notifications
You must be signed in to change notification settings - Fork 7
50 lines (48 loc) · 1.31 KB
/
build_board.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: build_board
on:
schedule:
- cron: 0 0 * * *
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/armmbed/mbed-os-env:master-latest
env:
APPNAME: echoback_string
strategy:
fail-fast: false
matrix:
target_board:
- ARCH_MAX
- DISCO_F746NG
- DISCO_F769NI
- GR_MANGO
- NUCLEO_F429ZI
- NUCLEO_F767ZI
- NUCLEO_H743ZI2
steps:
- uses: actions/checkout@v3
- uses: josStorer/get-current-time@v2
id: current-time
with:
format: YYYYMMDD
- uses: actions/cache@v3
with:
path: mbed-os
key: mbed-os_cache-${{ steps.current-time.outputs.formattedTime }}-${{ matrix.target_board }}
- uses: actions/cache@v3
with:
path: cmake_build
key: cmake_build_cache-${{ steps.current-time.outputs.formattedTime }}-${{ matrix.target_board }}
- uses: OUXT-Polaris/build-mbed-app-action@master
with:
target_board: ${{ matrix.target_board }}
toolchain: GCC_ARM
- uses: actions/upload-artifact@v3
with:
name: bin-${{ matrix.target_board }}
path: cmake_build/${{ matrix.target_board }}/develop/GCC_ARM/*.bin