From 41ba57a440c2b5bf15cdca9ed5d91a3a68cb78d1 Mon Sep 17 00:00:00 2001 From: Luigi2898 Date: Mon, 9 Sep 2024 12:34:03 +0200 Subject: [PATCH] test --- .github/workflows/lint.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4b5e0f58f..fcf117191 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,7 +18,9 @@ jobs: image: ghcr.io/esl-epfl/x-heep-toolchain:latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + with : + fetch-depth: 0 + # - uses: actions/setup-python@v2 with: python-version: 3.9 # - name: Install requirements @@ -30,8 +32,13 @@ jobs: conda activate core-v-mini-mcu find . \ -name '*.vendor.hjson' \ - | xargs -n1 util/vendor.py --verbose \ - && git diff --exit-code + | xargs -n1 util/vendor.py --verbose + if git diff --exit-code; then + echo "No differences found, vendor is up-to-date." + else + echo "::error ::Found differences, please re-vendor." + exit 1 + fi ################## # MCU Generator # ################## @@ -43,7 +50,7 @@ jobs: image: ghcr.io/esl-epfl/x-heep-toolchain:latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + # - uses: actions/setup-python@v2 with: python-version: 3.8 # - name: Install requirements