This commit is contained in:
2022-01-09 01:33:40 +01:00
committed by CommanderRedYT
parent e6ab721546
commit 9421847f9b

View File

@@ -375,6 +375,32 @@ jobs:
exit 1
fi
- name: Get esp-idf release name
id: get-esp-idf-release
uses: 0xFEEDC0DE64/get_latest_tag@main
with:
repo: repository/esp-idf
- name: Cache .espressif
id: cache-espressif
uses: actions/cache@v2
with:
path: ~/.espressif
key: ${{ runner.os }}-espressif-${{ steps.get-esp-idf-release.outputs.tag_name }}
- name: Verify that "Cache .espressif" had a hit
# GitHub doesnt support if
#if: steps.cache-espressif.outputs.cache-hit != 'true'
#run: git submodule update --init --recursive ${{ inputs.submodule }}
run: |
if echo ${{ steps.cache-espressif.outputs.cache-hit }} | grep -c "true"
then
echo "Cache .espressif had a hit, good"
else
echo "Cache .espressif did not hit? Did the prepare step run successfully?"
exit 1
fi
- name: Cache sonar-scanner
uses: actions/cache@v2
id: cache-sonar-scanner