Skip to content

Commit

Permalink
remove cache storage for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed Aug 29, 2024
1 parent 3118848 commit f79daaf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 31 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,19 +120,9 @@ jobs:
path: iree-dist-linux.tar
if-no-files-found: warn

- name: Overwrite cache
if: ${{ !cancelled() }}
continue-on-error: true
env:
# required to run gh with privileges
GH_TOKEN: ${{ github.token }}
run: |
gh extension install actions/gh-actions-cache
gh actions-cache delete ${{ env.CACHE_KEY }} --confirm -R ${{ github.repository }}
- name: Save cache
uses: actions/cache/save@v3
if: ${{ !cancelled() }}
if: ${{ !cancelled() && github.event_name != 'pull_request' }}
with:
path: ${{ env.CACHE_DIR }}
key: ${{ env.CACHE_KEY }}
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,9 @@ jobs:
path: iree-dist-${{ matrix.runs-on }}.tar
if-no-files-found: warn

- name: Overwrite cache
if: ${{ !cancelled() }}
continue-on-error: true
env:
GH_TOKEN: ${{ github.token }}
run: |
gh extension install actions/gh-actions-cache
gh actions-cache delete ${{ env.CACHE_KEY }} --confirm -R ${{ github.repository }}
- name: Save cache
uses: actions/cache/save@v3
if: ${{ !cancelled() }}
if: ${{ !cancelled() && github.event_name != 'pull_request' }}
with:
path: ${{ env.CACHE_DIR }}
key: ${{ env.CACHE_KEY }}
11 changes: 1 addition & 10 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,18 +116,9 @@ jobs:
path: iree-dist-windows.tar
if-no-files-found: warn

- name: Overwrite cache
if: ${{ !cancelled() }}
continue-on-error: true
env:
GH_TOKEN: ${{ github.token }}
run: |
gh extension install actions/gh-actions-cache
gh actions-cache delete ${{ env.CACHE_KEY }} --confirm -R ${{ github.repository }}
- name: Save cache
uses: actions/cache/save@v3
if: ${{ !cancelled() }}
if: ${{ !cancelled() && github.event_name != 'pull_request' }}
with:
path: ${{ env.CACHE_DIR }}
key: ${{ env.CACHE_KEY }}
Expand Down

0 comments on commit f79daaf

Please sign in to comment.