Skip to content

Commit

Permalink
switch to zmk build action
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFil committed Oct 27, 2023
1 parent eb0c8db commit 7e9f213
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 49 deletions.
50 changes: 1 addition & 49 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,5 @@
on: [push, pull_request, workflow_dispatch]

name: Build

jobs:
build:
runs-on: ubuntu-20.04
container:
image: zmkfirmware/zmk-build-arm:stable
name: Build
steps:
- name: Prepare variables
shell: sh -x {0}
env:
shield: ${{ matrix.shield }}
run: |
echo "zephyr_version=${ZEPHYR_VERSION}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v3
- name: Cache west modules
uses: actions/cache@v3
env:
cache-name: cache-zephyr-modules
with:
path: |
modules/
tools/
zephyr/
bootloader/
zmk/
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('manifest-dir/west.yml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: West Init
run: west init -l config
- name: West Update
run: west update
- name: West Zephyr export
run: west zephyr-export
- name: West Build (bt60)
shell: sh -x {0}
run: west build -s zmk/app -b bt60 -- -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
- name: bt60 Kconfig file
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$"
- name: Rename zmk.uf2
run: cp build/zephyr/zmk.uf2 bt60.uf2
- name: Archive (bt60)
uses: actions/upload-artifact@v3
with:
name: firmware
path: bt60.uf2
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main
18 changes: 18 additions & 0 deletions build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This file generates the GitHub Actions matrix
# For simple board + shield combinations, add them
# to the top level board and shield arrays, for more
# control, add individual board + shield combinations to
# the `include` property, e.g:
#
# board: [ "nice_nano_v2" ]
# shield: [ "corne_left", "corne_right" ]
# include:
# - board: bdn9_rev2
# - board: nice_nano_v2
# shield: reviung41
#
---
include:
- board: bt60
# cmake-args: -DDTS_EXTRA_CPPFLAGS=-DEQUALS60=1
# Uncomment above for the Equals60

0 comments on commit 7e9f213

Please sign in to comment.