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 4b38a2c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 42 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,7 @@ jobs:
- name: Install deps
run: |
yum remove -y openssl-devel zlib-devel || true
dnf install -y almalinux-release-devel
type -p yum-config-manager >/dev/null || yum -y install yum-utils
yum-config-manager -y --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
yum install -y protobuf-devel protobuf-compiler gh
yum install -y protobuf-devel protobuf-compiler
- name: Sync source deps
run: |
Expand All @@ -87,7 +82,6 @@ jobs:
echo CCACHE_DEBUGLEVEL=2 >> $GITHUB_ENV
echo CCACHE_DEBUGDIR="/ccache-debug" >> $GITHUB_ENV
echo CCACHE_SLOPPINESS=include_file_ctime,include_file_mtime,time_macros >> $GITHUB_ENV
echo CCACHE_COMPILERCHECK=content >> $GITHUB_ENV
- name: Build packages
run: |
Expand Down Expand Up @@ -120,19 +114,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
13 changes: 1 addition & 12 deletions .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,10 @@ jobs:

- name: Configure ccache debug logs
run: |
# https://interrupt.memfault.com/blog/ccache-debugging
echo CCACHE_DEBUG=1 >> $GITHUB_ENV
echo CCACHE_DEBUGLEVEL=2 >> $GITHUB_ENV
echo CCACHE_DEBUGDIR="/ccache-debug" >> $GITHUB_ENV
echo CCACHE_SLOPPINESS=include_file_ctime,include_file_mtime,time_macros >> $GITHUB_ENV
echo CCACHE_COMPILERCHECK=content >> $GITHUB_ENV
- name: Build packages
run: |
Expand Down Expand Up @@ -108,18 +106,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 }}
13 changes: 1 addition & 12 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,10 @@ jobs:

- name: Configure ccache debug logs
run: |
# https://interrupt.memfault.com/blog/ccache-debugging
echo CCACHE_DEBUG=1 >> $GITHUB_ENV
echo CCACHE_DEBUGLEVEL=2 >> $GITHUB_ENV
echo CCACHE_DEBUGDIR="/ccache-debug" >> $GITHUB_ENV
echo CCACHE_SLOPPINESS=include_file_ctime,include_file_mtime,time_macros >> $GITHUB_ENV
echo CCACHE_COMPILERCHECK=content >> $GITHUB_ENV
- name: Build packages
run: |
Expand Down Expand Up @@ -116,18 +114,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 4b38a2c

Please sign in to comment.