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