Skip to content

Commit

Permalink
[#71286] Temporarily disable cache
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalMyczkowski committed Jan 9, 2025
1 parent 0378db8 commit cf7f25f
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,29 +45,6 @@ runs:
mv renode "renode-$rev-cloned"
shell: bash
working-directory: ${{ runner.temp }}
# Avoid the download/build steps if Renode is already installed. We can't just put all of the build steps
# into a nested composite action as it wouldn't be available when using this action from another repository.
# See https://github.com/orgs/community/discussions/66094
if: ${{ env.RENODE_ROOT == '' }}
- uses: actions/cache/restore@v4
id: restore-cache
with:
path: ${{ runner.temp }}/renode-${{ steps.get-renode-rev.outputs.renode-rev }}
key: renode-${{ runner.os }}-${{ runner.arch }}-${{ steps.get-renode-rev.outputs.renode-rev }}-${{ steps.get-renode-rev.outputs.action-hash-key }}
if: ${{ env.RENODE_ROOT == '' }}
# Remove the just-cloned source if a cached build was found
- run: |
rm -rf renode-${{ steps.get-renode-rev.outputs.renode-rev }}-cloned
shell: bash
working-directory: ${{ runner.temp }}
if: ${{ env.RENODE_ROOT == '' && steps.restore-cache.outputs.cache-hit == 'true' }}
- run: |
mv renode-${{ steps.get-renode-rev.outputs.renode-rev }}-cloned renode-${{ steps.get-renode-rev.outputs.renode-rev }}
cd renode-${{ steps.get-renode-rev.outputs.renode-rev }}
echo Building "${{ inputs.renode-repository }}" at "${{ inputs.renode-revision }} (${{ steps.get-renode-rev.outputs.renode-rev }})"
git submodule update --init --recursive --depth=1
shell: bash
working-directory: ${{ runner.temp }}
if: ${{ env.RENODE_ROOT == '' && steps.restore-cache.outputs.cache-hit != 'true' }}
- name: Install dependencies (Linux)
run: |
Expand Down

0 comments on commit cf7f25f

Please sign in to comment.