Merge pull request #202 from linD026/master

CI: Switch Smatch source code to GitHub mirror
This commit is contained in:
Jim Huang 2023-05-01 23:48:53 +08:00 committed by GitHub
commit a284eabdb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,13 +84,12 @@ function do_gcc()
function do_smatch()
{
wget -q https://repo.or.cz/smatch.git/snapshot/refs/heads/master.tar.gz
git clone https://github.com/error27/smatch.git --depth=1
if [ $? -ne 0 ]; then
echo "Failed to download smatch."
exit 1
fi
tar -xzf master.tar.gz
pushd smatch-master-*
pushd smatch
make smatch || exit 1
local SMATCH=$(pwd)/smatch
popd