diff --git a/.github/workflows/build-extra.yml b/.github/workflows/build-extra.yml new file mode 100644 index 00000000000..1468ef8985e --- /dev/null +++ b/.github/workflows/build-extra.yml @@ -0,0 +1,52 @@ +name: Build-extra CI + +on: + push: + branches: [ master ] + paths-ignore: + - CONTRIBUTING.md + - README + - README.md + - RELNOTES + - SECURITY.md + - 'etc/**' + pull_request: + branches: [ master ] + paths-ignore: + - CONTRIBUTING.md + - README + - README.md + - RELNOTES + - SECURITY.md + - 'etc/**' + +jobs: + build-clang: + if: ${{ ! contains(github.event.commits[0].message, '[skip ci]') }} + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: configure + run: CC=clang-10 ./configure --enable-fatal-warnings + - name: make + run: make + scan-build: + if: ${{ ! contains(github.event.commits[0].message, '[skip ci]') }} + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: install clang-tools-10 + run: sudo apt-get install clang-tools-10 + - name: configure + run: CC=clang-10 ./configure --enable-fatal-warnings + - name: scan-build + run: NO_EXTRA_CFLAGS="yes" scan-build-10 --status-bugs make + cppcheck: + if: ${{ ! contains(github.event.commits[0].message, '[skip ci]') }} + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: install cppcheck + run: sudo apt-get install cppcheck + - name: cppcheck + run: cppcheck -q --force --error-exitcode=1 --enable=warning,performance . diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 71cb7f0b4e6..99b8a3be570 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,11 +3,24 @@ name: Build CI on: push: branches: [ master ] + paths-ignore: + - CONTRIBUTING.md + - README + - README.md + - RELNOTES + - SECURITY.md pull_request: branches: [ master ] + paths-ignore: + - CONTRIBUTING.md + - README + - README.md + - RELNOTES + - SECURITY.md jobs: build_and_test: + if: ${{ ! contains(github.event.commits[0].message, '[skip ci]') }} runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 @@ -21,35 +34,3 @@ jobs: run: sudo make install - name: run tests run: SHELL=/bin/bash make test-github - build-clang: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - - name: configure - run: CC=clang-10 ./configure --enable-fatal-warnings - - name: make - run: make - scan-build: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - - name: install clang-tools-10 - run: sudo apt-get install clang-tools-10 - - name: configure - run: CC=clang-10 ./configure --enable-fatal-warnings - - name: scan-build - run: NO_EXTRA_CFLAGS="yes" scan-build-10 --status-bugs make - cppcheck: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - - name: install cppcheck - run: sudo apt-get install cppcheck - - name: cppcheck - run: cppcheck -q --force --error-exitcode=1 --enable=warning,performance . - profile-sort: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - - name: check profiles - run: ./contrib/sort.py etc/*/{*.inc,*.net,*.profile} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index a37bbb5c725..301c7fad27a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -8,9 +8,23 @@ name: "CodeQL" on: push: branches: [master] + paths-ignore: + - CONTRIBUTING.md + - README + - README.md + - RELNOTES + - SECURITY.md + - 'etc/**' pull_request: # The branches below must be a subset of the branches above branches: [master] + paths-ignore: + - CONTRIBUTING.md + - README + - README.md + - RELNOTES + - SECURITY.md + - 'etc/**' schedule: - cron: '0 7 * * 2' diff --git a/.github/workflows/sort.yml b/.github/workflows/sort.yml new file mode 100644 index 00000000000..55ac065b6d0 --- /dev/null +++ b/.github/workflows/sort.yml @@ -0,0 +1,21 @@ +name: sort.py + +on: + push: + branches: [ master ] + paths: + - 'etc/**' + pull_request: + branches: [ master ] + paths: + - 'etc/**' + +jobs: + profile-sort: + if: ${{ ! contains(github.event.commits[0].message, '[skip ci]') }} + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: check profiles + run: ./contrib/sort.py etc/*/{*.inc,*.profile} +