瀏覽代碼

CI: Switch Smatch source code to GitHub mirror

Since the Smatch repository is unavailable recently [1], let's switch
to GitHub mirror, https://github.com/error27/smatch.git [2], instead
of using https://repo.or.cz/smatch.git.

[1] https://lore.kernel.org/all/Y1qf7w%2Fjo8FH5I8G@kadam/
[2] https://lore.kernel.org/all/20220810105926.GS3460@kadam/
Chih-En Lin 2 年之前
父節點
當前提交
16e0656b2d
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      .ci/static-analysis.sh

+ 2 - 3
.ci/static-analysis.sh

@@ -84,13 +84,12 @@ function do_gcc()
 
 
 function do_smatch()
 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
     if [ $? -ne 0 ]; then
         echo "Failed to download smatch."
         echo "Failed to download smatch."
         exit 1
         exit 1
     fi
     fi
-    tar -xzf master.tar.gz
-    pushd smatch-master-*
+    pushd smatch
     make smatch || exit 1
     make smatch || exit 1
     local SMATCH=$(pwd)/smatch
     local SMATCH=$(pwd)/smatch
     popd
     popd