From dbe753d9826fa23267cc7a812e3b39b914a392e0 Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Thu, 15 Sep 2022 11:18:29 +0200 Subject: [PATCH] Ci: Run clazy standalone --- .github/workflows/main.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d090d80d285..e527c12e14a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,16 +17,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 @@ -93,6 +83,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