forked from gled-rs/zmk-config
-
Notifications
You must be signed in to change notification settings - Fork 0
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
26 additions
and
43 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,49 +1,32 @@ | ||
on: [push, pull_request, workflow_dispatch] | ||
--- | ||
name: "master release" | ||
|
||
name: Build | ||
on: | ||
push: | ||
paths: | ||
- 'config/**' | ||
branches: | ||
- "master" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: zmkfirmware/zmk-build-arm:2.4 | ||
name: Build | ||
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main | ||
|
||
release: | ||
name: "Release" | ||
runs-on: "ubuntu-latest" | ||
needs: build | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Cache west modules | ||
uses: actions/cache@v2 | ||
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 (M60) | ||
run: west build -s zmk/app -b nrf52840_m2 -- -DSHIELD=m60 -DZMK_CONFIG="${GITHUB_WORKSPACE}/config" | ||
- name: M60 DTS File | ||
if: ${{ always() }} | ||
run: cat -n build/zephyr/nrf52840_m2.dts.pre.tmp | ||
- name: M60 Kconfig file | ||
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$" | ||
- name: Rename zmk.uf2 | ||
run: cp build/zephyr/zmk.uf2 m60_nrf52840_m2.uf2 | ||
- name: Archive (M60) | ||
uses: actions/upload-artifact@v2 | ||
- uses: actions/download-artifact@master | ||
with: | ||
name: firmware | ||
path: m60_nrf52840_m2.uf2 | ||
path: build/artifacts | ||
|
||
- uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: true | ||
title: "Development Build" | ||
automatic_release_tag: "latest" | ||
files: | | ||
build/artifacts/*.uf2 |
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,3 +1,3 @@ | ||
CONFIG_ZMK_USB_LOGGING=n | ||
|
||
CONFIG_ZMK_BLE=y | ||
CONFIG_USB_HID_BOOT_PROTOCOL=y |