Compare commits
3 Commits
ef20c44a71
...
c7e21c54b7
Author | SHA1 | Date | |
---|---|---|---|
c7e21c54b7 | |||
5e9cf391c5 | |||
f0d9fe52e2 |
@ -27,13 +27,13 @@ jobs:
|
||||
ln -s /usr/src/zephyr-3.4.0/zephyr zephyr
|
||||
ln -s /usr/src/zephyr-3.4.0/bootloader bootloader
|
||||
|
||||
- name: Hash west module
|
||||
- name: Hash west modules
|
||||
id: hash-west
|
||||
run: |
|
||||
FILE_PATH=zephyr/west.yml
|
||||
HASH=$(sha256sum $FILE_PATH | head -c 64)
|
||||
HASH=$(sha256sum <(find . -name build.yml -o -name west.yml -type f -exec sha256sum \; | sort) | head -c 64)
|
||||
echo "hash=$HASH" >> "$GITHUB_OUTPUT"
|
||||
echo "computed hash: $HASH $FILE_PATH"
|
||||
echo "computed hash: $HASH"
|
||||
|
||||
- name: Cache west modules
|
||||
uses: actions/cache@v3
|
||||
@ -45,6 +45,7 @@ jobs:
|
||||
tools/
|
||||
zephyr/
|
||||
bootloader/
|
||||
zmk/
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ steps.hash-west.outputs.hash }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
@ -60,7 +61,7 @@ jobs:
|
||||
run: west zephyr-export
|
||||
|
||||
- name: West Build (Corne Left)
|
||||
run: west build -s zephyr -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
|
||||
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$"
|
||||
@ -69,7 +70,7 @@ jobs:
|
||||
run: cp build/zephyr/zmk.uf2 corne_left_nice_nano_v2.uf2
|
||||
|
||||
- name: West Build (Corne Right)
|
||||
run: west build --pristine -s zephyr -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
|
||||
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$"
|
||||
@ -86,9 +87,10 @@ jobs:
|
||||
path: firmware.zip
|
||||
name: firmware.zip
|
||||
|
||||
- name: Hash west module
|
||||
- name: Hash west modules
|
||||
id: hash-west
|
||||
run: |
|
||||
HASH=$(sha256sum zephyr/west.yml | head -c 64)
|
||||
FILE_PATH=zephyr/west.yml
|
||||
HASH=$(sha256sum <(find . -name build.yml -o -name west.yml -type f -exec sha256sum \; | sort) | head -c 64)
|
||||
echo "hash=$HASH" >> "$GITHUB_OUTPUT"
|
||||
echo "computed hash: $HASH"
|
||||
|
Loading…
Reference in New Issue
Block a user