Renovate
4af20bfa25
Some checks failed
Build / Build (push) Failing after 2m12s
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/upload-artifact](https://github.com/actions/upload-artifact) | action | major | `v3` -> `v4` | --- ### Release Notes <details> <summary>actions/upload-artifact (actions/upload-artifact)</summary> ### [`v4`](https://github.com/actions/upload-artifact/compare/v3...v4) [Compare Source](https://github.com/actions/upload-artifact/compare/v3...v4) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4zNy4xIiwidXBkYXRlZEluVmVyIjoiMzguMzcuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Reviewed-on: #6 Co-authored-by: Renovate <renovate@kjan.de> Co-committed-by: Renovate <renovate@kjan.de>
100 lines
2.9 KiB
YAML
100 lines
2.9 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
name: Build
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: zmkfirmware/zmk-build-arm:stable
|
|
name: Build
|
|
steps:
|
|
- name: Install Dependencies
|
|
run: |
|
|
apt-get update;
|
|
apt-get install --yes --no-install-recommends \
|
|
nodejs \
|
|
zstd \
|
|
zip
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Hash west modules
|
|
id: hash-west
|
|
run: |
|
|
FILE_PATH=zephyr/west.yml
|
|
FILES=$(find . -name build.yml -o -name west.yml -type f -exec sha256sum \; | sort)
|
|
HASH="$(echo -n $FILES | sha256sum | head -c 64)"
|
|
echo "hash=$HASH" >> "$GITHUB_OUTPUT"
|
|
echo "computed hash: $HASH"
|
|
|
|
- name: Cache west modules
|
|
uses: actions/cache@v4
|
|
env:
|
|
cache-name: cache-zephyr-modules
|
|
with:
|
|
path: |
|
|
modules/
|
|
tools/
|
|
zephyr/
|
|
bootloader/
|
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ steps.hash-west.outputs.hash }}
|
|
restore-keys: |
|
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
${{ runner.os }}-build-
|
|
${{ runner.os }}-
|
|
timeout-minutes: 5
|
|
continue-on-error: true
|
|
|
|
- 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 (Ferris Left)
|
|
run: west build -s zmk/app -b nice_nano_v2 -- -DSHIELD=cradio_left -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
|
|
|
|
- name: Ferris Left Kconfig file
|
|
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$"
|
|
|
|
- name: Rename zmk.uf2
|
|
run: cp build/zephyr/zmk.uf2 cradio_left_nice_nano_v2.uf2
|
|
|
|
- name: West Build (Ferris Right)
|
|
run: west build --pristine -s zmk/app -b nice_nano_v2 -- -DSHIELD=cradio_right -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
|
|
|
|
- name: Ferris Right Kconfig file
|
|
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$"
|
|
|
|
- name: Rename zmk.uf2
|
|
run: cp build/zephyr/zmk.uf2 cradio_right_nice_nano_v2.uf2
|
|
|
|
- name: Move artifacts
|
|
run: |
|
|
mkdir firmware
|
|
mv cradio_left_nice_nano_v2.uf2 firmware/
|
|
mv cradio_right_nice_nano_v2.uf2 firmware/
|
|
|
|
- name: Hash west modules
|
|
id: hash-west
|
|
run: |
|
|
FILE_PATH=zephyr/west.yml
|
|
FILES=$(find . -name build.yml -o -name west.yml -type f -exec sha256sum \; | sort)
|
|
HASH="$(echo -n $FILES | sha256sum | head -c 64)"
|
|
echo "hash=$HASH" >> "$GITHUB_OUTPUT"
|
|
echo "computed hash: $HASH"
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
path: firmware/
|
|
name: firmware
|