diff options
| author | Manuel Bentele | 2021-03-15 08:33:04 +0100 |
|---|---|---|
| committer | Manuel Bentele | 2021-03-15 08:33:04 +0100 |
| commit | dcf4cd421bc0f93d602da9c45357be036b7b8354 (patch) | |
| tree | 92e2b3d93570f2cca07404a46b946dbbaf0a6740 /.github/workflows | |
| parent | Add build support for Github actions (diff) | |
| download | xloop-dcf4cd421bc0f93d602da9c45357be036b7b8354.tar.gz xloop-dcf4cd421bc0f93d602da9c45357be036b7b8354.tar.xz xloop-dcf4cd421bc0f93d602da9c45357be036b7b8354.zip | |
Add support in CMake to validate (lint) the source code
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 1 | ||||
| -rw-r--r-- | .github/workflows/lint.yml | 33 |
2 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8de93a6..73cd4b4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,6 +26,7 @@ jobs: run: | sudo apt-get update -y -qq sudo apt-get install -y -qq make \ + clang-format \ linux-headers-generic \ libcap-dev \ rpm diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..6007417 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,33 @@ +name: Lint xloop + +on: + push: + branches: + - master + pull_request: + release: + +jobs: + lint: + name: Lint xloop + runs-on: ubuntu-20.04 + steps: + - name: Install xloop dependencies + run: | + sudo apt-get update -y -qq + sudo apt-get install -y -qq make \ + clang-format \ + linux-headers-generic \ + libcap-dev \ + rpm + - name: Checkout xloop repository + uses: actions/checkout@v2 + - name: Fetch xloop repository tags + run: git fetch --prune --unshallow + - name: Configure xloop build + run: | + cmake -B ${{ github.workspace }}/build \ + -S ${{ github.workspace }} + - name: Lint xloop artifacts + working-directory: ${{ github.workspace }}/build + run: make lint |
