scriptcheck.yml: avoid duplicated cppcheck builds (#3611)
This commit is contained in:
parent
77434d093e
commit
f79bb40e3d
|
@ -8,6 +8,25 @@ jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Cache Cppcheck
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: cppcheck
|
||||||
|
key: ${{ runner.os }}-scriptcheck-cppcheck-${{ github.sha }}
|
||||||
|
|
||||||
|
- name: build cppcheck
|
||||||
|
run: |
|
||||||
|
make -j$(nproc) -s
|
||||||
|
strip -s ./cppcheck
|
||||||
|
|
||||||
|
scriptcheck:
|
||||||
|
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, '3.10']
|
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, '3.10']
|
||||||
|
@ -16,6 +35,12 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Restore Cppcheck
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: cppcheck
|
||||||
|
key: ${{ runner.os }}-scriptcheck-cppcheck-${{ github.sha }}
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
|
@ -83,10 +108,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
python tools/test_matchcompiler.py
|
python tools/test_matchcompiler.py
|
||||||
|
|
||||||
- name: build cppcheck
|
|
||||||
run: |
|
|
||||||
make -j$(nproc) -s
|
|
||||||
|
|
||||||
- name: test addons
|
- name: test addons
|
||||||
run: |
|
run: |
|
||||||
python -m pytest addons/test/test-*.py
|
python -m pytest addons/test/test-*.py
|
||||||
|
@ -104,4 +125,3 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
make -j$(nproc) run-dmake
|
make -j$(nproc) run-dmake
|
||||||
git diff --exit-code
|
git diff --exit-code
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue