]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
github-ci: use sccache for gcc in commits workflow 6444/head
authorJason Ish <jason.ish@oisf.net>
Tue, 5 Oct 2021 15:47:11 +0000 (09:47 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 5 Oct 2021 16:04:07 +0000 (10:04 -0600)
Previously was only used for Rust.

.github/workflows/commits.yml

index 1b6d8ee7b1e2d6adb408f61be9f00d2be02ff7fa..651cacfa9577bdd68c227feb61dd8e582a6a1995 100644 (file)
@@ -23,7 +23,6 @@ jobs:
                 build-essential \
                 autoconf \
                 automake \
-                ccache \
                 curl \
                 git \
                 jq \
@@ -61,7 +60,6 @@ jobs:
           mkdir -p "$HOME/.cargo/bin"
           (cd "$HOME/.cargo/bin" && tar xvf /tmp/sccache-0.2.13-x86_64-unknown-linux-musl.tar.gz --strip-components=1 --wildcards '*/sccache')
           echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
-      - run: echo "/usr/lib/ccache" >> $GITHUB_PATH
       - name: Install cbindgen
         run: |
           cd $HOME/.cargo/bin
@@ -77,7 +75,7 @@ jobs:
               git checkout $rev
               echo "Building rev ${rev}" | tee -a build_log.txt
               ./autogen.sh >> build_log.txt 2>&1
-              ./configure --enable-unittests >> build_log.txt 2>&1
+              CC="sccache gcc" ./configure --enable-unittests >> build_log.txt 2>&1
               if ! make -j2 >> build_log.txt 2>&1; then
                   echo "::error ::Failed to build rev ${rev}"
                   tail -n 50 build_log.txt