diff --git a/.github/actions/freebsd/action.yml b/.github/actions/freebsd/action.yml index 456d88dd1f877..0bc8e9df83329 100644 --- a/.github/actions/freebsd/action.yml +++ b/.github/actions/freebsd/action.yml @@ -14,7 +14,7 @@ runs: with: release: '13.5' usesh: true - copyback: false + copyback: true # Temporarily disable sqlite, as FreeBSD ships it with disabled double quotes. We'll need to fix our tests. # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269889 prepare: | @@ -24,6 +24,7 @@ runs: kldload accf_http pkg install -y \ + ccache \ autoconf \ bison \ gmake \ @@ -49,8 +50,13 @@ runs: curl \ $OPCACHE_TLS_TESTS_DEPS + export CCACHE_DIR=$GITHUB_WORKSPACE/.ccache + ccache --set-config=max_size=256M + ccache --set-config=compression=true + ccache -z + ./buildconf -f - CC=clang CXX=clang++ \ + CC="ccache clang" CXX="ccache clang++" \ ./configure \ --prefix=/usr/local \ --enable-debug \ diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 4f1c53c023025..cfd8a85084d1b 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -407,5 +407,13 @@ jobs: steps: - name: git checkout uses: actions/checkout@v6 + - name: Restore ccache + uses: actions/cache@v4 + with: + path: .ccache + key: "${{github.job}}-${{hashFiles('main/php_version.h')}}-${{github.sha}}" + restore-keys: | + ${{github.job}}-${{hashFiles('main/php_version.h')}}- + ${{github.job}}- - name: FreeBSD uses: ./.github/actions/freebsd