Skip to content
Merged
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
17 changes: 14 additions & 3 deletions .github/workflows/reusable_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,8 @@ jobs:

- name: Download and extract ccache cache from s3
id: restore-ccache-cache-s3
if: inputs.use_ccache_cache == true
if: inputs.use_ccache_cache == true &&
( inputs.ccache_type != 'kernel' || inputs.upload_ccache_cache != true)
working-directory: openwrt
run: |
S3_LINK=https://s3-ccache.openwrt-ci.ansuel.com
Expand Down Expand Up @@ -436,7 +437,9 @@ jobs:

- name: Restore ccache cache
id: restore-ccache-cache
if: inputs.use_ccache_cache == true && steps.restore-ccache-cache-s3.outputs.cache-hit != 'true'
if: inputs.use_ccache_cache == true &&
( inputs.ccache_type != 'kernel' || inputs.upload_ccache_cache != true) &&
steps.restore-ccache-cache-s3.outputs.cache-hit != 'true'
uses: actions/cache/restore@v5
with:
path: openwrt/.ccache
Expand Down Expand Up @@ -546,7 +549,7 @@ jobs:
touch $SYSTEM_CCACHE_CONF

echo compiler_type=gcc >> $SYSTEM_CCACHE_CONF
[ ${{ inputs.ccache_type }} = 'kernel' ] && echo max_size=400M >> $SYSTEM_CCACHE_CONF
[ ${{ inputs.ccache_type }} = 'kernel' ] && echo max_size=800M >> $SYSTEM_CCACHE_CONF
Copy link
Copy Markdown
Member Author

@hauke hauke Apr 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ansuel Do you have enough storage for this change?


echo depend_mode=true >> $SYSTEM_CCACHE_CONF
echo sloppiness=file_macro,locale,time_macros >> $SYSTEM_CCACHE_CONF
Expand Down Expand Up @@ -692,6 +695,14 @@ jobs:
working-directory: openwrt
run: make target/toolchain/compile -j$(nproc) BUILD_LOG=1 || ret=$? .github/workflows/scripts/show_build_failures.sh

- name: Show ccache stats
if: inputs.use_ccache_cache == true
shell: su buildbot -c "sh -e {0}"
working-directory: openwrt
env:
CCACHE_DIR: ${{ github.workspace }}/openwrt/.ccache
run: staging_dir/host/bin/ccache --show-stats

- name: Coverity prepare toolchain
if: inputs.coverity_check_packages != ''
shell: su buildbot -c "sh -e {0}"
Expand Down