Merge branch 'master' into gitea-actions
This commit is contained in:
commit
a2e1f7b2ef
@ -6,17 +6,28 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: zmkfirmware/zmk-build-arm:stable
|
image: ghcr.io/bcdevices/zephyr:latest
|
||||||
name: Build
|
name: Build
|
||||||
steps:
|
steps:
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: apt update; apt install -y nodejs ssh
|
run: |
|
||||||
- name: Setup Node
|
apt-get update;
|
||||||
uses: actions/setup-node@v3
|
apt-get install --yes --no-install-recommends \
|
||||||
|
nodejs \
|
||||||
|
zstd
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Hash west module
|
||||||
|
id: hash-west
|
||||||
|
run: |
|
||||||
|
HASH=$(sha256sum config/west.yml | head -c 64)
|
||||||
|
echo "hash=$HASH" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "computed hash: $HASH"
|
||||||
|
|
||||||
- name: Cache west modules
|
- name: Cache west modules
|
||||||
uses: https://github.com/actions/cache@v2
|
uses: actions/cache@v3
|
||||||
env:
|
env:
|
||||||
cache-name: cache-zephyr-modules
|
cache-name: cache-zephyr-modules
|
||||||
with:
|
with:
|
||||||
@ -25,39 +36,46 @@ jobs:
|
|||||||
tools/
|
tools/
|
||||||
zephyr/
|
zephyr/
|
||||||
bootloader/
|
bootloader/
|
||||||
zmk/
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ steps.hash-west.outputs.hash }}
|
||||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('manifest-dir/west.yml') }}
|
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
${{ runner.os }}-build-
|
${{ runner.os }}-build-
|
||||||
${{ runner.os }}-
|
${{ runner.os }}-
|
||||||
|
timeout-minutes: 5
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
- name: West Init
|
- name: West Init
|
||||||
run: west init -l config
|
run: west init -l config
|
||||||
|
|
||||||
- name: West Update
|
- name: West Update
|
||||||
run: west update
|
run: west update
|
||||||
|
|
||||||
- name: West Zephyr export
|
- name: West Zephyr export
|
||||||
run: west zephyr-export
|
run: west zephyr-export
|
||||||
|
|
||||||
- name: West Build (Corne Left)
|
- name: West Build (Corne Left)
|
||||||
run: west build -s zmk/app -b nice_nano_v2 -- -DSHIELD=corne_left -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
|
run: west build -s zmk/app -b nice_nano_v2 -- -DSHIELD=corne_left -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
|
||||||
|
|
||||||
- name: Corne Left Kconfig file
|
- name: Corne Left Kconfig file
|
||||||
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$"
|
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$"
|
||||||
|
|
||||||
- name: Rename zmk.uf2
|
- name: Rename zmk.uf2
|
||||||
run: cp build/zephyr/zmk.uf2 corne_left_nice_nano_v2.uf2
|
run: cp build/zephyr/zmk.uf2 corne_left_nice_nano_v2.uf2
|
||||||
- name: Archive (Corne Left)
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: firmware
|
|
||||||
path: corne_left_nice_nano_v2.uf2
|
|
||||||
|
|
||||||
- name: West Build (Corne Right)
|
- name: West Build (Corne Right)
|
||||||
run: west build --pristine -s zmk/app -b nice_nano_v2 -- -DSHIELD=corne_right -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
|
run: west build --pristine -s zmk/app -b nice_nano_v2 -- -DSHIELD=corne_right -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
|
||||||
|
|
||||||
- name: Corne Right Kconfig file
|
- name: Corne Right Kconfig file
|
||||||
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$"
|
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$"
|
||||||
|
|
||||||
- name: Rename zmk.uf2
|
- name: Rename zmk.uf2
|
||||||
run: cp build/zephyr/zmk.uf2 corne_right_nice_nano_v2.uf2
|
run: cp build/zephyr/zmk.uf2 corne_right_nice_nano_v2.uf2
|
||||||
- name: Archive (Corne Right)
|
|
||||||
|
- name: Zip Artifacts
|
||||||
|
run: zip firmware.zip corne_left_nice_nano_v2.uf2 corne_right_nice_nano_v2.uf2
|
||||||
|
|
||||||
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: firmware
|
path: firmware.zip
|
||||||
path: corne_right_nice_nano_v2.uf2
|
name: firmware.zip
|
||||||
|
Loading…
Reference in New Issue
Block a user