-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (54 loc) · 1.45 KB
/
build_app.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
51
52
53
54
55
56
name: build_app
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:
target_board: NUCLEO_F767ZI
strategy:
fail-fast: false
matrix:
app_name:
- echoback_string
- echoreply_string
- pub_float32
- pub_twist
- sub_uint16
- sub_pose
- mturtle_teleop
- mturtle_teleop_joy
- pub_camera_image
- pub_image
- pub_long_string_sub_crc
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.app_name }}
- uses: actions/cache@v3
with:
path: cmake_build
key: cmake_build_cache-${{ steps.current-time.outputs.formattedTime }}-${{ matrix.app_name }}
- uses: OUXT-Polaris/build-mbed-app-action@master
env:
APPNAME: ${{ matrix.app_name }}
with:
target_board: ${{ env.target_board }}
toolchain: GCC_ARM
- uses: actions/upload-artifact@v3
with:
name: bin-${{ matrix.app_name }}
path: cmake_build/${{ env.target_board }}/develop/GCC_ARM/*.bin