diff --git a/.github/workflows/build_all.yml b/.github/workflows/build_all.yml index 52f76eefc02..e03d7c7eca8 100644 --- a/.github/workflows/build_all.yml +++ b/.github/workflows/build_all.yml @@ -21,6 +21,10 @@ on: description: 'Build Windows artifacts' type: boolean default: true + build_windows_installer: + description: 'Build Windows installer' + type: boolean + default: false build_without_pch_windows: description: 'Build without PCH (windows)' type: boolean @@ -71,6 +75,7 @@ jobs: build-deps-only: ${{ inputs.build-deps-only || false }} force-build: false release-version: ${{ inputs.release_version || '' }} + build_windows_installer: ${{ inputs.build_windows_installer || false }} build_without_pch_windows: ${{ inputs.build_without_pch_windows || false }} secrets: inherit build_macos_arch: diff --git a/.github/workflows/build_check_cache.yml b/.github/workflows/build_check_cache.yml index d4ac38b3636..c2582535c78 100644 --- a/.github/workflows/build_check_cache.yml +++ b/.github/workflows/build_check_cache.yml @@ -19,6 +19,10 @@ on: required: false type: string default: '' + build_windows_installer: + required: false + type: boolean + default: false build_without_pch_windows: required: false type: boolean @@ -70,5 +74,6 @@ jobs: build-deps-only: ${{ inputs.build-deps-only }} force-build: ${{ inputs.force-build }} release-version: ${{ inputs.release-version }} + build_windows_installer: ${{ inputs.build_windows_installer }} build_without_pch_windows: ${{ inputs.build_without_pch_windows }} secrets: inherit diff --git a/.github/workflows/build_deps.yml b/.github/workflows/build_deps.yml index 1afa9738481..cdba7198595 100644 --- a/.github/workflows/build_deps.yml +++ b/.github/workflows/build_deps.yml @@ -26,6 +26,10 @@ on: required: false type: string default: '' + build_windows_installer: + required: false + type: boolean + default: false build_without_pch_windows: required: false type: boolean @@ -146,5 +150,6 @@ jobs: os: ${{ inputs.os }} arch: ${{ inputs.arch }} release-version: ${{ inputs.release-version }} + build_windows_installer: ${{ inputs.build_windows_installer }} build_without_pch_windows: ${{ inputs.build_without_pch_windows }} secrets: inherit diff --git a/.github/workflows/build_orca.yml b/.github/workflows/build_orca.yml index e714731185d..c032b80ba38 100644 --- a/.github/workflows/build_orca.yml +++ b/.github/workflows/build_orca.yml @@ -21,6 +21,10 @@ on: required: false type: string default: '' + build_windows_installer: + required: false + type: boolean + default: false build_without_pch_windows: required: false type: boolean @@ -376,7 +380,7 @@ jobs: run: sccache --show-stats - name: Create installer Win - if: runner.os == 'Windows' && !vars.SELF_HOSTED + if: runner.os == 'Windows' && !vars.SELF_HOSTED && inputs.build_windows_installer working-directory: ${{ github.workspace }}/build run: | cpack -G NSIS @@ -398,7 +402,7 @@ jobs: path: ${{ github.workspace }}/build/OrcaSlicer-ImageMap_Windows_${{ env.ver }}_portable.zip - name: Upload artifacts Win installer - if: runner.os == 'Windows' && !vars.SELF_HOSTED + if: runner.os == 'Windows' && !vars.SELF_HOSTED && inputs.build_windows_installer uses: actions/upload-artifact@v7 with: name: OrcaSlicer-ImageMap_Windows_${{ env.ver }} @@ -423,7 +427,7 @@ jobs: max_releases: 1 - name: Deploy Windows release installer - if: github.repository == 'OrcaSlicer/OrcaSlicer' && github.ref == 'refs/heads/main' && runner.os == 'Windows' && !vars.SELF_HOSTED + if: github.repository == 'OrcaSlicer/OrcaSlicer' && github.ref == 'refs/heads/main' && runner.os == 'Windows' && !vars.SELF_HOSTED && inputs.build_windows_installer uses: WebFreak001/deploy-nightly@v3.2.0 with: upload_url: https://uploads.github.com/repos/OrcaSlicer/OrcaSlicer/releases/137995723/assets{?name,label}