|
|
@ -1,3 +1,5 @@ |
|
|
|
|
|
|
|
name: Build |
|
|
|
|
|
|
|
|
|
|
|
on: |
|
|
|
on: |
|
|
|
push: |
|
|
|
push: |
|
|
|
paths: |
|
|
|
paths: |
|
|
@ -8,12 +10,9 @@ on: |
|
|
|
- ".github/workflows/build.yml" |
|
|
|
- ".github/workflows/build.yml" |
|
|
|
- "app/**" |
|
|
|
- "app/**" |
|
|
|
|
|
|
|
|
|
|
|
name: Build |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
jobs: |
|
|
|
build: |
|
|
|
build: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
|
name: Build Test |
|
|
|
|
|
|
|
strategy: |
|
|
|
strategy: |
|
|
|
matrix: |
|
|
|
matrix: |
|
|
|
board: [proton_c, nice_nano, bluemicro840_v1, nrfmicro_13] |
|
|
|
board: [proton_c, nice_nano, bluemicro840_v1, nrfmicro_13] |
|
|
@ -47,8 +46,6 @@ jobs: |
|
|
|
- name: Checkout |
|
|
|
- name: Checkout |
|
|
|
uses: actions/checkout@v2 |
|
|
|
uses: actions/checkout@v2 |
|
|
|
- name: Cache west modules |
|
|
|
- name: Cache west modules |
|
|
|
timeout-minutes: 2 |
|
|
|
|
|
|
|
continue-on-error: true |
|
|
|
|
|
|
|
uses: actions/cache@v2 |
|
|
|
uses: actions/cache@v2 |
|
|
|
env: |
|
|
|
env: |
|
|
|
cache-name: cache-zephyr-modules |
|
|
|
cache-name: cache-zephyr-modules |
|
|
@ -63,32 +60,34 @@ jobs: |
|
|
|
${{ runner.os }}-build-${{ env.cache-name }}- |
|
|
|
${{ runner.os }}-build-${{ env.cache-name }}- |
|
|
|
${{ runner.os }}-build- |
|
|
|
${{ runner.os }}-build- |
|
|
|
${{ runner.os }}- |
|
|
|
${{ runner.os }}- |
|
|
|
- name: West Init |
|
|
|
timeout-minutes: 2 |
|
|
|
|
|
|
|
continue-on-error: true |
|
|
|
|
|
|
|
- name: West init |
|
|
|
uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" |
|
|
|
uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" |
|
|
|
id: west-init |
|
|
|
id: west-init |
|
|
|
with: |
|
|
|
with: |
|
|
|
args: 'init "-l app"' |
|
|
|
args: 'init "-l app"' |
|
|
|
- name: West Update |
|
|
|
- name: West update |
|
|
|
uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" |
|
|
|
uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" |
|
|
|
id: west-update |
|
|
|
id: west-update |
|
|
|
with: |
|
|
|
with: |
|
|
|
args: "update" |
|
|
|
args: "update" |
|
|
|
- name: West Config Zephyr Base |
|
|
|
- name: West config Zephyr base |
|
|
|
uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" |
|
|
|
uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" |
|
|
|
id: west-config |
|
|
|
id: west-config |
|
|
|
with: |
|
|
|
with: |
|
|
|
args: 'config "--global zephyr.base-prefer configfile"' |
|
|
|
args: 'config "--global zephyr.base-prefer configfile"' |
|
|
|
- name: West Zephyr Export |
|
|
|
- name: West Zephyr export |
|
|
|
uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" |
|
|
|
uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" |
|
|
|
id: west-zephyr-export |
|
|
|
id: west-zephyr-export |
|
|
|
with: |
|
|
|
with: |
|
|
|
args: "zephyr-export" |
|
|
|
args: "zephyr-export" |
|
|
|
- name: West Build |
|
|
|
- name: West build |
|
|
|
uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" |
|
|
|
uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" |
|
|
|
id: west-build |
|
|
|
id: west-build |
|
|
|
with: |
|
|
|
with: |
|
|
|
args: 'build "-s app -b ${{ matrix.board }} -- -DSHIELD=${{ matrix.shield }}"' |
|
|
|
args: 'build "-s app -b ${{ matrix.board }} -- -DSHIELD=${{ matrix.shield }}"' |
|
|
|
- name: Archive Build |
|
|
|
- name: Archive build |
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
if: ${{ matrix.board != 'proton_c' }} |
|
|
|
if: ${{ matrix.board != 'proton_c' }} |
|
|
|
with: |
|
|
|
with: |
|
|
|