Skip to content

Commit 63ad943

Browse files
authored
Merge pull request #68 from ftk/master
Github Action for building SDK
2 parents 1421c4f + c78970f commit 63ad943

File tree

32 files changed

+69
-31
lines changed

32 files changed

+69
-31
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os: [ubuntu-20.04, macos-latest]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- run: make
17+
working-directory: customer_app
18+
env:
19+
BL60X_SDK_PATH: ${{ github.workspace }}
20+
21+
build-msys:
22+
runs-on: windows-latest
23+
steps:
24+
- name: setup msys2
25+
uses: msys2/setup-msys2@v2
26+
with:
27+
update: true
28+
install: make
29+
msystem: MSYS
30+
31+
- uses: actions/checkout@v2
32+
33+
- run: make
34+
shell: msys2 {0}
35+
working-directory: customer_app
36+
env:
37+
BL60X_SDK_PATH: ${{ github.workspace }}
38+
MAX_MAKE_JOBS: 2
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
make CONFIG_CHIP_NAME=BL602 CONFIG_LINK_ROM=1 -j
2+
make CONFIG_CHIP_NAME=BL602 CONFIG_LINK_ROM=1 -j${MAX_MAKE_JOBS}
33
exit $?

customer_app/bl602_boot2/genromap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22
rm -rf build_out
3-
make CONFIG_CHIP_NAME=BL602 -j
3+
make CONFIG_CHIP_NAME=BL602 -j${MAX_MAKE_JOBS}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22
rm -rf build_out
3-
make CONFIG_CHIP_NAME=BL602 -j
3+
make CONFIG_CHIP_NAME=BL602 -j${MAX_MAKE_JOBS}

customer_app/bl602_demo_at/genromap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
make CONFIG_CHIP_NAME=BL602 CONFIG_LINK_ROM=1 -j
2+
make CONFIG_CHIP_NAME=BL602 CONFIG_LINK_ROM=1 -j${MAX_MAKE_JOBS}
33
exit $?
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
make CONFIG_CHIP_NAME=BL602 CONFIG_LINK_ROM=1 CONFIG_BLE_TP_SERVER=1 -j
2+
make CONFIG_CHIP_NAME=BL602 CONFIG_LINK_ROM=1 CONFIG_BLE_TP_SERVER=1 -j${MAX_MAKE_JOBS}
33
exit $?

customer_app/bl602_demo_nano/genromap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
make CONFIG_CHIP_NAME=BL602 CONFIG_LINK_ROM=1 -j
2+
make CONFIG_CHIP_NAME=BL602 CONFIG_LINK_ROM=1 -j${MAX_MAKE_JOBS}
33
exit $?
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
make CONFIG_CHIP_NAME=BL602 CONFIG_LINK_ROM=1 -j
2+
make CONFIG_CHIP_NAME=BL602 CONFIG_LINK_ROM=1 -j${MAX_MAKE_JOBS}
33
exit $?

customer_app/bl602_demo_wifi/genromap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
make CONFIG_CHIP_NAME=BL602 CONFIG_LINK_ROM=1 -j
2+
make CONFIG_CHIP_NAME=BL602 CONFIG_LINK_ROM=1 -j${MAX_MAKE_JOBS}
33
exit $?
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
make CONFIG_CHIP_NAME=BL602 CONFIG_LINK_ROM=1 -j
2+
make CONFIG_CHIP_NAME=BL602 CONFIG_LINK_ROM=1 -j${MAX_MAKE_JOBS}
33
exit $?

0 commit comments

Comments
 (0)