Compare commits

..

No commits in common. "master" and "gitea-actions" have entirely different histories.

View File

@ -6,7 +6,7 @@ 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
@ -14,18 +14,15 @@ jobs:
apt-get update; apt-get update;
apt-get install --yes --no-install-recommends \ apt-get install --yes --no-install-recommends \
nodejs \ nodejs \
zstd \ zstd
zip
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Hash west modules - name: Hash west module
id: hash-west id: hash-west
run: | run: |
FILE_PATH=zephyr/west.yml HASH=$(sha256sum zephyr/west.yml | head -c 64)
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 "hash=$HASH" >> "$GITHUB_OUTPUT"
echo "computed hash: $HASH" echo "computed hash: $HASH"
@ -49,7 +46,7 @@ jobs:
- 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
@ -77,17 +74,15 @@ jobs:
- name: Zip Artifacts - name: Zip Artifacts
run: zip firmware.zip corne_left_nice_nano_v2.uf2 corne_right_nice_nano_v2.uf2 run: zip firmware.zip corne_left_nice_nano_v2.uf2 corne_right_nice_nano_v2.uf2
- 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 - name: Upload Artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
path: firmware.zip path: firmware.zip
name: firmware.zip name: firmware.zip
- name: Hash west module
id: hash-west
run: |
HASH=$(sha256sum zephyr/west.yml | head -c 64)
echo "hash=$HASH" >> "$GITHUB_OUTPUT"
echo "computed hash: $HASH"