name: build-tests(${{ matrix.os }},${{ matrix.compiler.CC }},${{ matrix.layer.nick }})
env:
- CC: ${{ matrix.compiler.CC }}
- CXX: ${{ matrix.compiler.CXX }}
+ CC: /usr/bin/ccache ${{ matrix.compiler.CC }}
+ CXX: /usr/bin/ccache ${{ matrix.compiler.CXX }}
steps:
sudo sed --in-place -E 's/# (deb-src.*updates main)/ \1/g' /etc/apt/sources.list
sudo apt-get --quiet=2 update
sudo apt-get --quiet=2 build-dep squid
- sudo apt-get --quiet=2 install linuxdoc-tools libtool-bin ${{ matrix.compiler.CC }}
+ sudo apt-get --quiet=2 install linuxdoc-tools libtool-bin ${{ matrix.compiler.CC }} ccache
- name: Checkout sources
uses: actions/checkout@v4
+ - name: Setup ccache
+ uses: squid-cache/ccache-action@v1.2.14
+ with:
+ verbose: 2 # default 0
+ key: ${{ matrix.os }}-${{ matrix.compiler.CC }}-${{ matrix.layer.nick }}
+
- name: Run build on Linux
run: ./test-builds.sh ${{ matrix.layer.name }}
name: linux-distros(${{ matrix.os }},${{ matrix.compiler.CC }},${{ matrix.layer.nick }})
env:
- CC: ${{ matrix.compiler.CC }}
- CXX: ${{ matrix.compiler.CXX }}
+ CC: /usr/bin/ccache ${{ matrix.compiler.CC }}
+ CXX: /usr/bin/ccache ${{ matrix.compiler.CXX }}
steps:
- name: Checkout Sources
uses: actions/checkout@v4
+ - name: Setup ccache
+ uses: squid-cache/ccache-action@v1.2.14
+ with:
+ verbose: 2 # default 0
+ key: ${{ matrix.os }}-${{ matrix.compiler.CC }}-${{ matrix.layer.nick }}
+
- name: Run test-builds
id: test-builds
run: |