mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-11 19:17:33 +00:00
ci: run MSIX pack after existing Windows uploads and keep it out of release downloads
This commit is contained in:
2
.github/workflows/build_all.yml
vendored
2
.github/workflows/build_all.yml
vendored
@@ -14,6 +14,7 @@ on:
|
|||||||
- 'resources/**'
|
- 'resources/**'
|
||||||
- ".github/workflows/build_*.yml"
|
- ".github/workflows/build_*.yml"
|
||||||
- 'scripts/flatpak/**'
|
- 'scripts/flatpak/**'
|
||||||
|
- 'scripts/msix/**'
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
@@ -30,6 +31,7 @@ on:
|
|||||||
- 'build_release_vs2022.bat'
|
- 'build_release_vs2022.bat'
|
||||||
- 'build_release_macos.sh'
|
- 'build_release_macos.sh'
|
||||||
- 'scripts/flatpak/**'
|
- 'scripts/flatpak/**'
|
||||||
|
- 'scripts/msix/**'
|
||||||
|
|
||||||
|
|
||||||
schedule:
|
schedule:
|
||||||
|
|||||||
38
.github/workflows/build_orca.yml
vendored
38
.github/workflows/build_orca.yml
vendored
@@ -298,18 +298,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cpack -G NSIS
|
cpack -G NSIS
|
||||||
|
|
||||||
- name: Build MSIX Store package Win
|
|
||||||
if: runner.os == 'Windows' && !vars.SELF_HOSTED
|
|
||||||
working-directory: ${{ github.workspace }}
|
|
||||||
shell: pwsh
|
|
||||||
run: |
|
|
||||||
./scripts/msix/build_msix.ps1 `
|
|
||||||
-InstallDir "${{ github.workspace }}/build/OrcaSlicer" `
|
|
||||||
-OutputPath "${{ github.workspace }}/build/OrcaSlicer_Windows_MSIX_${{ env.ver }}.msix" `
|
|
||||||
-IdentityName "${{ vars.ORCA_MSIX_IDENTITY_NAME || 'OrcaSlicer.Dev' }}" `
|
|
||||||
-Publisher "${{ vars.ORCA_MSIX_PUBLISHER || 'CN=00000000-0000-0000-0000-000000000000' }}" `
|
|
||||||
-PublisherDisplayName "${{ vars.ORCA_MSIX_PUBLISHER_DISPLAY_NAME || 'OrcaSlicer (dev)' }}"
|
|
||||||
|
|
||||||
- name: Pack app
|
- name: Pack app
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
working-directory: ${{ github.workspace }}/build
|
working-directory: ${{ github.workspace }}/build
|
||||||
@@ -336,13 +324,6 @@ jobs:
|
|||||||
name: OrcaSlicer_Windows_${{ env.ver }}
|
name: OrcaSlicer_Windows_${{ env.ver }}
|
||||||
path: ${{ github.workspace }}/build/OrcaSlicer*.exe
|
path: ${{ github.workspace }}/build/OrcaSlicer*.exe
|
||||||
|
|
||||||
- name: Upload artifacts Win MSIX
|
|
||||||
if: runner.os == 'Windows' && !vars.SELF_HOSTED
|
|
||||||
uses: actions/upload-artifact@v7
|
|
||||||
with:
|
|
||||||
name: OrcaSlicer_Windows_MSIX_${{ env.ver }}
|
|
||||||
path: ${{ github.workspace }}/build/OrcaSlicer_Windows_MSIX_${{ env.ver }}.msix
|
|
||||||
|
|
||||||
- name: Upload artifacts Win PDB
|
- name: Upload artifacts Win PDB
|
||||||
if: runner.os == 'Windows' && !vars.SELF_HOSTED
|
if: runner.os == 'Windows' && !vars.SELF_HOSTED
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@v7
|
||||||
@@ -390,6 +371,25 @@ jobs:
|
|||||||
asset_content_type: application/x-msdownload
|
asset_content_type: application/x-msdownload
|
||||||
max_releases: 1
|
max_releases: 1
|
||||||
|
|
||||||
|
- name: Build MSIX Store package Win
|
||||||
|
if: runner.os == 'Windows' && !vars.SELF_HOSTED
|
||||||
|
working-directory: ${{ github.workspace }}
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
./scripts/msix/build_msix.ps1 `
|
||||||
|
-InstallDir "${{ github.workspace }}/build/OrcaSlicer" `
|
||||||
|
-OutputPath "${{ github.workspace }}/build/OrcaSlicer_Windows_MSIX_${{ env.ver }}.msix" `
|
||||||
|
-IdentityName "${{ vars.ORCA_MSIX_IDENTITY_NAME || 'OrcaSlicer.Dev' }}" `
|
||||||
|
-Publisher "${{ vars.ORCA_MSIX_PUBLISHER || 'CN=00000000-0000-0000-0000-000000000000' }}" `
|
||||||
|
-PublisherDisplayName "${{ vars.ORCA_MSIX_PUBLISHER_DISPLAY_NAME || 'OrcaSlicer (dev)' }}"
|
||||||
|
|
||||||
|
- name: Upload artifacts Win MSIX
|
||||||
|
if: runner.os == 'Windows' && !vars.SELF_HOSTED
|
||||||
|
uses: actions/upload-artifact@v7
|
||||||
|
with:
|
||||||
|
name: OrcaSlicer_Windows_MSIX_${{ env.ver }}
|
||||||
|
path: ${{ github.workspace }}/build/OrcaSlicer_Windows_MSIX_${{ env.ver }}.msix
|
||||||
|
|
||||||
# Ubuntu
|
# Ubuntu
|
||||||
- name: Apt-Install Dependencies
|
- name: Apt-Install Dependencies
|
||||||
if: runner.os == 'Linux' && !vars.SELF_HOSTED
|
if: runner.os == 'Linux' && !vars.SELF_HOSTED
|
||||||
|
|||||||
3
.github/workflows/publish_release.yml
vendored
3
.github/workflows/publish_release.yml
vendored
@@ -73,8 +73,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Download release artifacts from build run
|
- name: Download release artifacts from build run
|
||||||
run: |
|
run: |
|
||||||
|
# Windows_V* (not Windows_*) keeps the MSIX Store artifact out: it goes to Partner Center, not GitHub releases.
|
||||||
gh run download "$RUN_ID" --repo "$GITHUB_REPOSITORY" --dir artifacts \
|
gh run download "$RUN_ID" --repo "$GITHUB_REPOSITORY" --dir artifacts \
|
||||||
-p 'OrcaSlicer_Windows_*' \
|
-p 'OrcaSlicer_Windows_V*' \
|
||||||
-p 'OrcaSlicer_Mac_universal_*' \
|
-p 'OrcaSlicer_Mac_universal_*' \
|
||||||
-p 'OrcaSlicer_Linux_ubuntu_*' \
|
-p 'OrcaSlicer_Linux_ubuntu_*' \
|
||||||
-p 'OrcaSlicer-Linux-flatpak_*' \
|
-p 'OrcaSlicer-Linux-flatpak_*' \
|
||||||
|
|||||||
Reference in New Issue
Block a user