Skip to content

Commit

Permalink
Ci: Run clazy standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Dec 23, 2022
1 parent 88cbfd5 commit 7a242cb
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/main.yml
Expand Up @@ -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
Expand Down Expand Up @@ -99,6 +89,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
Expand Down

0 comments on commit 7a242cb

Please sign in to comment.