From f006a1180cd930f7ff84e0f6150d735964e3e615 Mon Sep 17 00:00:00 2001 From: Marius Alwan Meyer <22202402+Sporqist@users.noreply.github.com> Date: Tue, 10 Oct 2023 18:28:36 +0200 Subject: [PATCH] [CI] use zmkfirmware/zmk-build-arm:stable --- .gitea/workflows/build.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 21e9f06..2660b03 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -6,7 +6,7 @@ jobs: build: runs-on: ubuntu-latest container: - image: ghcr.io/bcdevices/zephyr:latest + image: zmkfirmware/zmk-build-arm:stable name: Build steps: - name: Install Dependencies @@ -19,13 +19,6 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Link Directories - run: | - ln -s /usr/src/zephyr-3.4.0/modules modules - ln -s /usr/src/zephyr-3.4.0/tools tools - ln -s /usr/src/zephyr-3.4.0/zephyr zephyr - ln -s /usr/src/zephyr-3.4.0/bootloader bootloader - - name: Hash west modules id: hash-west run: | @@ -55,7 +48,7 @@ jobs: - name: West Init run: west init -l config - + - name: West Update run: west update @@ -88,3 +81,12 @@ jobs: with: path: firmware.zip name: firmware.zip + + - 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" \ No newline at end of file