-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |