From c5a3cc2ef18cc211e1a19a78063107e7ee2e7d75 Mon Sep 17 00:00:00 2001 From: Marius Alwan Meyer <22202402+Sporqist@users.noreply.github.com> Date: Tue, 10 Oct 2023 18:25:46 +0200 Subject: [PATCH] [CI] don't use bcdevices/zepyyr --- .gitea/workflows/build.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 21e9f06..2863c43 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -5,8 +5,6 @@ name: Build jobs: build: runs-on: ubuntu-latest - container: - image: ghcr.io/bcdevices/zephyr:latest name: Build steps: - name: Install Dependencies @@ -19,13 +17,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: | @@ -88,3 +79,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