diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-09-15 12:18:29 +0300 |
---|---|---|
committer | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-09-21 18:17:05 +0300 |
commit | dabec0f99e75d8d70aa73992e649d69516b10d9d (patch) | |
tree | 549585fb31fa13524cb83c55114f21d253346c2a | |
parent | 01f6a548f2bb587a982e5cb99590c1279d76af01 (diff) |
Ci: Run clazy standalonework/clazy
-rw-r--r-- | .github/workflows/main.yml | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 08222f13b..4c04bd373 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,16 +22,6 @@ jobs: strategy: matrix: include: - - name: Windows 64-bit cl - target: windows-msvc2019_64-cl - os: windows-latest - fetch-depth: 0 - container: - - name: macOS 64-bit clang - target: macos-64-clang - os: macos-latest - fetch-depth: 1 - container: - name: CentOS 7 64-bit gcc target: linux-64-gcc os: ubuntu-latest @@ -98,6 +88,15 @@ jobs: & "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --src-dir "${env:GITHUB_WORKSPACE}" owncloud/owncloud-client } + - name: Clazy + if: ${{ matrix.target == 'linux-64-gcc' }} + run: | + & "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c clazy + $env:BUILD_DIR = $(& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --get buildDir -q owncloud-client) + git clone --depth=1 https://invent.kde.org/vonreth/clazy-report.git "${env:HOME}/craft/clazy-report" + & "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --run python3 "${env:HOME}/craft/clazy-report/clazy-report.py" --src "${env:GITHUB_WORKSPACE}" --build "${env:BUILD_DIR}" + Copy-Item "${env:HOME}/craft/clazy-report/clazy-report.json" "${env:GITHUB_WORKSPACE}/binaries/" + - name: Run tests run: | & "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --src-dir "${env:GITHUB_WORKSPACE}" --test owncloud/owncloud-client |