diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 40c7968c5d..fdcd389819 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -159,7 +159,7 @@ jobs: BUILD_PROFILE: ${{ matrix.mode }} run: bash ci/run.bash - name: Run cargo clippy - if: matrix.mode != 'release' && matrix.mingwdir == '' + if: matrix.mode == 'release' && matrix.mingwdir == '' env: TARGET: ${{ matrix.target }} # os-specific code leads to lints escaping if we only run this in one target @@ -350,7 +350,7 @@ jobs: BUILD_PROFILE: ${{ matrix.mode }} run: bash ci/run.bash - name: Run cargo clippy - if: matrix.mode != 'release' && matrix.mingwdir == '' + if: matrix.mode == 'release' && matrix.mingwdir == '' env: TARGET: ${{ matrix.target }} # os-specific code leads to lints escaping if we only run this in one target @@ -547,7 +547,7 @@ jobs: BUILD_PROFILE: ${{ matrix.mode }} run: bash ci/run.bash - name: Run cargo clippy - if: matrix.mode != 'release' && matrix.mingwdir == '' + if: matrix.mode == 'release' && matrix.mingwdir == '' env: TARGET: ${{ matrix.target }} # os-specific code leads to lints escaping if we only run this in one target diff --git a/ci/actions-templates/windows-builds-template.yaml b/ci/actions-templates/windows-builds-template.yaml index 3ac3107828..ff5a711cdc 100644 --- a/ci/actions-templates/windows-builds-template.yaml +++ b/ci/actions-templates/windows-builds-template.yaml @@ -150,7 +150,7 @@ jobs: # skip-main skip-pr skip-stable BUILD_PROFILE: ${{ matrix.mode }} run: bash ci/run.bash - name: Run cargo clippy - if: matrix.mode != 'release' && matrix.mingwdir == '' + if: matrix.mode == 'release' && matrix.mingwdir == '' env: TARGET: ${{ matrix.target }} # os-specific code leads to lints escaping if we only run this in one target