Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
labrusca committed Jun 8, 2024
1 parent 8143771 commit 5f8578c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 43 deletions.
67 changes: 25 additions & 42 deletions .github/workflows/build.yml
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
2 changes: 1 addition & 1 deletion config/m60.conf
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

0 comments on commit 5f8578c

Please sign in to comment.