scriptcheck.yml: avoid duplicated cppcheck builds (#3611)
This commit is contained in:
parent
77434d093e
commit
f79bb40e3d
|
@ -8,6 +8,25 @@ jobs:
|
|||
build:
|
||||
|
||||
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:
|
||||
matrix:
|
||||
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, '3.10']
|
||||
|
@ -16,6 +35,12 @@ jobs:
|
|||
steps:
|
||||
- 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 }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
|
@ -83,10 +108,6 @@ jobs:
|
|||
run: |
|
||||
python tools/test_matchcompiler.py
|
||||
|
||||
- name: build cppcheck
|
||||
run: |
|
||||
make -j$(nproc) -s
|
||||
|
||||
- name: test addons
|
||||
run: |
|
||||
python -m pytest addons/test/test-*.py
|
||||
|
@ -104,4 +125,3 @@ jobs:
|
|||
run: |
|
||||
make -j$(nproc) run-dmake
|
||||
git diff --exit-code
|
||||
|
||||
|
|
Loading…
Reference in New Issue