From 05591ff37bad4701cdebe68e61b74ad4f4b45f26 Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Tue, 16 Jun 2020 22:40:47 -0400 Subject: Build matrix with nice_nano and proton_c boards. --- .github/workflows/build.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 11b9f39..a703643 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,9 @@ jobs: build: runs-on: ubuntu-latest name: Build Test + strategy: + matrix: + board: [proton_c, nice_nano] steps: # To use this repository's private action, # you must check out the repository @@ -27,27 +30,27 @@ jobs: ${{ runner.os }}-build- ${{ runner.os }}- - name: West Init - uses: 'docker://zmkfirmware/zephyr-west-action-arm:latest' + uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" id: west-init with: args: 'init "-l app"' - name: West Update - uses: 'docker://zmkfirmware/zephyr-west-action-arm:latest' + uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" id: west-update with: - args: 'update' + args: "update" - name: West Config Zephyr Base - uses: 'docker://zmkfirmware/zephyr-west-action-arm:latest' + uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" id: west-config with: args: 'config "--global zephyr.base-prefer configfile"' - name: West Zephyr Export - uses: 'docker://zmkfirmware/zephyr-west-action-arm:latest' + uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" id: west-zephyr-export with: - args: 'zephyr-export' + args: "zephyr-export" - name: West Build - uses: 'docker://zmkfirmware/zephyr-west-action-arm:latest' + uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" id: west-build with: - args: 'build "-s app -b proton_c -- -DSHIELD=petejohanson_proton_handwire"' + args: 'build "-s app -b ${{ matrix.board }} -- -DSHIELD=petejohanson_proton_handwire"' -- cgit v1.2.3 From 33795b99ca9ba2370a26a13784bd453fb5d9a558 Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Tue, 16 Jun 2020 22:57:20 -0400 Subject: Change the kernel bin name, upload built UF2. --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a703643..7f2b0cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,3 +54,9 @@ jobs: id: west-build with: args: 'build "-s app -b ${{ matrix.board }} -- -DSHIELD=petejohanson_proton_handwire"' + - name: Archive Build + uses: actions/upload-artifact@v2 + if: ${{ matrix.board == "nice_nano "}} + with: + name: zmk-uf2 + path: build/zephyr/zmk.uf2 -- cgit v1.2.3 From d1daf0de067773b125e63a72fd0f356df190c42b Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Tue, 16 Jun 2020 22:59:20 -0400 Subject: Fix the string literal. --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7f2b0cc..f55d6b1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,7 +56,7 @@ jobs: args: 'build "-s app -b ${{ matrix.board }} -- -DSHIELD=petejohanson_proton_handwire"' - name: Archive Build uses: actions/upload-artifact@v2 - if: ${{ matrix.board == "nice_nano "}} + if: ${{ matrix.board == 'nice_nano' }} with: name: zmk-uf2 path: build/zephyr/zmk.uf2 -- cgit v1.2.3 From a087a466e95565d7d8326f8435ea29baf6219e46 Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Tue, 16 Jun 2020 23:03:15 -0400 Subject: Tweak the artifact name to include board. --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f55d6b1..7b2aa0c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,5 +58,5 @@ jobs: uses: actions/upload-artifact@v2 if: ${{ matrix.board == 'nice_nano' }} with: - name: zmk-uf2 + name: "${{ matrix.board }}-zmk-uf2" path: build/zephyr/zmk.uf2 -- cgit v1.2.3