Skip to content

Commit e6b372e

Browse files
authored
Merge pull request #15 from hakuturu583/feature/build_test
Feature/build test
2 parents b9d11c2 + cee83eb commit e6b372e

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/build.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: build
2+
3+
on:
4+
schedule:
5+
- cron: 0 0 * * *
6+
pull_request:
7+
workflow_dispatch:
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
container: ghcr.io/armmbed/mbed-os-env:master-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
target_board:
20+
- ARCH_MAX
21+
- DISCO_F746NG
22+
- DISCO_F769NI
23+
- GR_MANGO
24+
- NUCLEO_F429ZI
25+
- NUCLEO_F767ZI
26+
- NUCLEO_H743ZI2
27+
steps:
28+
- uses: actions/checkout@v3
29+
- uses: josStorer/get-current-time@v2
30+
id: current-time
31+
with:
32+
format: YYYYMMDD
33+
- uses: actions/cache@v3
34+
with:
35+
path: mbed-os
36+
key: mbed-os_chahe-${{ steps.current-time.outputs.formattedTime }}-${{ matrix.target_board }}
37+
- uses: actions/cache@v3
38+
with:
39+
path: cmake_build
40+
key: cmake_build_chahe-${{ steps.current-time.outputs.formattedTime }}-${{ matrix.target_board }}
41+
- uses: OUXT-Polaris/build-mbed-app-action@master
42+
with:
43+
target_board: ${{ matrix.target_board }}
44+
toolchain: GCC_ARM
45+
- uses: actions/upload-artifact@v3
46+
with:
47+
name: bin-${{ matrix.target_board }}
48+
path: cmake_build/${{ matrix.target_board }}/develop/GCC_ARM/*.bin

0 commit comments

Comments
 (0)