Make windows installer packaging optional

This commit is contained in:
sentientstardust
2026-06-11 06:35:46 +01:00
parent b3764c8454
commit 83c287d6f4
4 changed files with 22 additions and 3 deletions

View File

@@ -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:

View File

@@ -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

View File

@@ -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

View File

@@ -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}