diff --git a/.github/workflows/desktop-build.yml b/.github/workflows/desktop-build.yml index e95898097..ef2c789f9 100644 --- a/.github/workflows/desktop-build.yml +++ b/.github/workflows/desktop-build.yml @@ -178,7 +178,7 @@ jobs: run: source .ci/docker.sh --build - name: Build debug and test - if: matrix.test != 'skip' + if: matrix.test != 'skip' && github.event_name == 'pull_request' shell: bash env: CMAKE_GENERATOR: '${{env.CMAKE_GENERATOR}}' @@ -423,6 +423,7 @@ jobs: # uses environment variables, see compile.sh for more details - name: Build Cockatrice + if: matrix.type == 'Release' || (matrix.type == 'Debug' && github.event_name == 'pull_request') id: build shell: bash env: