Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI ccache on every push to develop #2865

Merged
merged 2 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/workflows/ci-esp32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ jobs:
. Tools/ci/setenv.ps1
Tools/ci/install.cmd

- name: Compiler Cache
uses: actions/cache@v4
- name: Restore Compiler Cache
id: ccache
uses: actions/cache/restore@v4
with:
path: .ccache
key: ${{ matrix.os }}-ccache-${{ matrix.variant }}-${{ matrix.idf_version }}
Expand All @@ -106,3 +107,19 @@ jobs:

- name: Compiler Cache stats
run: ccache -sv

- name: Delete Previous Compiler Cache
if: github.ref_name == github.event.repository.default_branch && steps.ccache.outputs.cache-hit
continue-on-error: true
run: |
gh extension install actions/gh-actions-cache
gh actions-cache delete "${{ steps.ccache.outputs.cache-primary-key }}" --branch ${{ github.ref_name }} --confirm
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Save Compiler Cache
if: github.ref_name == github.event.repository.default_branch || !steps.ccache.outputs.cache-hit
uses: actions/cache/save@v4
with:
path: .ccache
key: ${{ steps.ccache.outputs.cache-primary-key }}
21 changes: 19 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ jobs:
. Tools/ci/setenv.ps1
Tools/ci/install.cmd

- name: Compiler Cache
uses: actions/cache@v4
- name: Restore Compiler Cache
id: ccache
uses: actions/cache/restore@v4
with:
path: .ccache
key: ${{ matrix.os }}-ccache-${{ matrix.toolchain }}-${{ matrix.variant }}
Expand All @@ -97,3 +98,19 @@ jobs:

- name: Compiler Cache stats
run: ccache -sv

- name: Delete Previous Compiler Cache
if: github.ref_name == github.event.repository.default_branch && steps.ccache.outputs.cache-hit
continue-on-error: true
run: |
gh extension install actions/gh-actions-cache
gh actions-cache delete "${{ steps.ccache.outputs.cache-primary-key }}" --branch ${{ github.ref_name }} --confirm
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Save Compiler Cache
if: github.ref_name == github.event.repository.default_branch || !steps.ccache.outputs.cache-hit
uses: actions/cache/save@v4
with:
path: .ccache
key: ${{ steps.ccache.outputs.cache-primary-key }}
21 changes: 19 additions & 2 deletions .github/workflows/library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ jobs:
. Tools/ci/setenv.ps1
Tools/ci/install.cmd

- name: Compiler Cache
uses: actions/cache@v4
- name: Restore Compiler Cache
id: ccache
uses: actions/cache/restore@v4
with:
path: .ccache
key: ${{ matrix.os }}-ccache-${{ matrix.variant }}-${{ matrix.arch == 'Esp32' && env.INSTALL_IDF_VER || '' }}
Expand All @@ -155,3 +156,19 @@ jobs:

- name: Compiler Cache stats
run: ccache -sv

- name: Delete Previous Compiler Cache
if: github.ref_name == github.event.repository.default_branch && steps.ccache.outputs.cache-hit
continue-on-error: true
run: |
gh extension install actions/gh-actions-cache
gh actions-cache delete "${{ steps.ccache.outputs.cache-primary-key }}" --branch ${{ github.ref_name }} --confirm
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Save Compiler Cache
if: github.ref_name == github.event.repository.default_branch || !steps.ccache.outputs.cache-hit
uses: actions/cache/save@v4
with:
path: .ccache
key: ${{ steps.ccache.outputs.cache-primary-key }}
Loading