Mercurial > octave
comparison .github/workflows/make.yaml @ 32050:c00d842608f7
GitHub-CI (mingw): Reduce ccache size to approx. 2x the size after a clean run.
* .github/workflows/make.yaml (mingw): Reduce ccache size to approx. 2x the
cache size when started with an empty cache.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sat, 22 Apr 2023 20:59:48 +0200 |
parents | 45db7ac36ba5 |
children | b16940405077 |
comparison
equal
deleted
inserted
replaced
32049:1c99c8f020f7 | 32050:c00d842608f7 |
---|---|
377 target-prefix: mingw-w64-x86_64 | 377 target-prefix: mingw-w64-x86_64 |
378 cc: gcc | 378 cc: gcc |
379 cxx: g++ | 379 cxx: g++ |
380 f77: gfortran | 380 f77: gfortran |
381 extra-config-flags: "" | 381 extra-config-flags: "" |
382 ccache-max: 0.9G | |
382 - msystem: CLANG64 | 383 - msystem: CLANG64 |
383 mingw-prefix: clang64 | 384 mingw-prefix: clang64 |
384 target-prefix: mingw-w64-clang-x86_64 | 385 target-prefix: mingw-w64-clang-x86_64 |
385 cc: clang | 386 cc: clang |
386 # It looks like we and graphicsmagick++ aren't ready for C++17 yet. | 387 # It looks like we and graphicsmagick++ aren't ready for C++17 yet. |
391 extra-config-flags: | 392 extra-config-flags: |
392 --disable-lib-visibility-flags | 393 --disable-lib-visibility-flags |
393 --enable-fortran-calling-convention=gfortran | 394 --enable-fortran-calling-convention=gfortran |
394 ac_cv_f77_compiler_gnu=yes | 395 ac_cv_f77_compiler_gnu=yes |
395 lt_cv_prog_gnu_ld=yes | 396 lt_cv_prog_gnu_ld=yes |
397 ccache-max: 400M | |
396 | 398 |
397 env: | 399 env: |
398 CHERE_INVOKING: 1 | 400 CHERE_INVOKING: 1 |
399 CC: ${{ matrix.cc }} | 401 CC: ${{ matrix.cc }} |
400 CXX: ${{ matrix.cxx }} | 402 CXX: ${{ matrix.cxx }} |
504 - name: configure ccache | 506 - name: configure ccache |
505 # Limit the maximum size and switch on compression to avoid exceeding the total disk or cache quota. | 507 # Limit the maximum size and switch on compression to avoid exceeding the total disk or cache quota. |
506 run: | | 508 run: | |
507 which ccache | 509 which ccache |
508 test -d ${{ steps.ccache-prepare.outputs.ccachedir }} || mkdir -p ${{ steps.ccache-prepare.outputs.ccachedir }} | 510 test -d ${{ steps.ccache-prepare.outputs.ccachedir }} || mkdir -p ${{ steps.ccache-prepare.outputs.ccachedir }} |
509 echo "max_size = 0.9G" > ${{ steps.ccache-prepare.outputs.ccachedir }}/ccache.conf | 511 echo "max_size = ${{ matrix.ccache-max }}" > ${{ steps.ccache-prepare.outputs.ccachedir }}/ccache.conf |
510 echo "compression = true" >> ${{ steps.ccache-prepare.outputs.ccachedir }}/ccache.conf | 512 echo "compression = true" >> ${{ steps.ccache-prepare.outputs.ccachedir }}/ccache.conf |
511 ccache -p | 513 ccache -p |
512 ccache -s | 514 ccache -s |
513 # create ccache helper script for Fortran compiler | 515 # create ccache helper script for Fortran compiler |
514 echo -e '#!/bin/bash\nccache '$MINGW_PREFIX'/bin/'$F77' "$@"' > $MINGW_PREFIX/lib/ccache/bin/$F77 | 516 echo -e '#!/bin/bash\nccache '$MINGW_PREFIX'/bin/'$F77' "$@"' > $MINGW_PREFIX/lib/ccache/bin/$F77 |