Check all configs automatically
authorAlexander Popov <alex.popov@linux.com>
Mon, 30 Mar 2020 12:04:26 +0000 (15:04 +0300)
committerAlexander Popov <alex.popov@linux.com>
Mon, 30 Mar 2020 12:58:58 +0000 (15:58 +0300)
.github/workflows/main.yml

index 94659a233ba6efae037f042bfc8d73fcad22974c..379de5e49da57053be24cd2db333e3ecda19283b 100644 (file)
@@ -20,7 +20,7 @@ jobs:
 
     steps:
 
-    - uses: actions/checkout@v2
+#   - uses: actions/checkout@v2
 
     - name: Set up Python ${{ matrix.python-version }}
       uses: actions/setup-python@v1
@@ -30,12 +30,20 @@ jobs:
     - name: Install
       run: |
         python -m pip install --upgrade pip
-        pip install setuptools
-        python ./setup.py install
+        pip --verbose install git+https://github.com/a13xp0p0v/kconfig-hardened-check
 
     - name: Try
       run: |
-        set -x
         kconfig-hardened-check
-        echo $?
 
+    - name: Check all configs
+      run: |
+        echo ">>>>> check all configs <<<<<"
+        CONFIG_DIR=`find /opt/hostedtoolcache/Python/ -name config_files`
+        CONFIGS=`find $CONFIG_DIR -type f|grep "\.config"`
+        for C in $CONFIGS
+        do
+                echo -e "\n>>>>> checking $C <<<<<"
+                kconfig-hardened-check -c $C || exit
+        done
+        echo -e "\n>>>>> checking done <<<<<"