github-ci: add sccache to per-commit check

Also use the pre-build cbindgen binary.
Hopefully speeds up the build process.
pull/5638/head
Jason Ish 6 years ago committed by Victor Julien
parent efc9a7a398
commit 858ab07775

@ -25,6 +25,7 @@ jobs:
autoconf \
automake \
ccache \
curl \
git \
jq \
libtool \
@ -55,10 +56,18 @@ jobs:
zlib1g \
zlib1g-dev
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Installing sccache
run: |
(cd /tmp && curl -OL https://github.com/mozilla/sccache/releases/download/0.2.13/sccache-0.2.13-x86_64-unknown-linux-musl.tar.gz)
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: cargo install cbindgen
- run: echo $PATH
run: |
cd $HOME/.cargo/bin
curl -OL https://github.com/eqrion/cbindgen/releases/download/v0.15.0/cbindgen
chmod 755 cbindgen
- uses: actions/checkout@v1
- run: git fetch
- run: git clone https://github.com/OISF/libhtp -b 0.5.x
@ -77,6 +86,7 @@ jobs:
fi
make -ik distclean > /dev/null
done
- run: sccache -s
- uses: actions/upload-artifact@v2-preview
name: Uploading build log
if: always()

Loading…
Cancel
Save