mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 13:32:23 +00:00
CI: Skip saving the toolchain and ccache caches in PR workflows
This speeds up CI by removing some cache thrashing caused by PRs that change cache-related files (but that were not merged yet).
This commit is contained in:
parent
e01f1c949f
commit
057cd35a6d
Notes:
sideshowbarker
2024-07-18 16:57:13 +09:00
Author: https://github.com/IdanHo
Commit: 057cd35a6d
Pull-request: https://github.com/SerenityOS/serenity/pull/7731
Issue: https://github.com/SerenityOS/serenity/issues/6728
1 changed files with 8 additions and 2 deletions
10
.github/workflows/cmake.yml
vendored
10
.github/workflows/cmake.yml
vendored
|
@ -68,7 +68,10 @@ jobs:
|
||||||
message(" set-output name=libc_headers::${{ hashFiles('Userland/Libraries/LibC/**/*.h', 'Userland/Libraries/LibPthread/**/*.h', 'Toolchain/Patches/*.patch', 'Toolchain/BuildIt.sh') }}")
|
message(" set-output name=libc_headers::${{ hashFiles('Userland/Libraries/LibC/**/*.h', 'Userland/Libraries/LibPthread/**/*.h', 'Toolchain/Patches/*.patch', 'Toolchain/BuildIt.sh') }}")
|
||||||
message("::set-output name=libc_headers::${{ hashFiles('Userland/Libraries/LibC/**/*.h', 'Userland/Libraries/LibPthread/**/*.h', 'Toolchain/Patches/*.patch', 'Toolchain/BuildIt.sh') }}")
|
message("::set-output name=libc_headers::${{ hashFiles('Userland/Libraries/LibC/**/*.h', 'Userland/Libraries/LibPthread/**/*.h', 'Toolchain/Patches/*.patch', 'Toolchain/BuildIt.sh') }}")
|
||||||
- name: Toolchain cache
|
- name: Toolchain cache
|
||||||
uses: actions/cache@v2
|
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged.
|
||||||
|
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b
|
||||||
|
env:
|
||||||
|
CACHE_SKIP_SAVE: ${{ github.event_name == 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
path: ${{ github.workspace }}/Toolchain/Cache/
|
path: ${{ github.workspace }}/Toolchain/Cache/
|
||||||
# This assumes that *ALL* LibC and LibPthread headers have an impact on the Toolchain.
|
# This assumes that *ALL* LibC and LibPthread headers have an impact on the Toolchain.
|
||||||
|
@ -79,7 +82,10 @@ jobs:
|
||||||
run: TRY_USE_LOCAL_TOOLCHAIN=y ${{ github.workspace }}/Toolchain/BuildIt.sh
|
run: TRY_USE_LOCAL_TOOLCHAIN=y ${{ github.workspace }}/Toolchain/BuildIt.sh
|
||||||
- name: ccache(1) cache
|
- name: ccache(1) cache
|
||||||
# Pull the ccache *after* building the toolchain, in case building the Toolchain somehow interferes.
|
# Pull the ccache *after* building the toolchain, in case building the Toolchain somehow interferes.
|
||||||
uses: actions/cache@v2
|
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged.
|
||||||
|
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b
|
||||||
|
env:
|
||||||
|
CACHE_SKIP_SAVE: ${{ github.event_name == 'pull_request' }}
|
||||||
with:
|
with:
|
||||||
path: /home/runner/.ccache
|
path: /home/runner/.ccache
|
||||||
# If you're here because ccache broke (it never should), increment matrix.ccache-mark.
|
# If you're here because ccache broke (it never should), increment matrix.ccache-mark.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue