mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 12:19:03 +08:00
Revert "Specify to build installer per-OS."
This reverts commit 957c25973b0fe57dde7bb16e960a7205e80407f4.
This commit is contained in:
parent
35094ff47d
commit
b0160b2d86
3
.github/workflows/conan-package.yml
vendored
3
.github/workflows/conan-package.yml
vendored
@ -12,17 +12,14 @@ on:
|
|||||||
create_binaries_windows:
|
create_binaries_windows:
|
||||||
required: true
|
required: true
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
|
||||||
description: 'create binaries Windows'
|
description: 'create binaries Windows'
|
||||||
create_binaries_linux:
|
create_binaries_linux:
|
||||||
required: true
|
required: true
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
|
||||||
description: 'create binaries Linux'
|
description: 'create binaries Linux'
|
||||||
create_binaries_macos:
|
create_binaries_macos:
|
||||||
required: true
|
required: true
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
|
||||||
description: 'create binaries Macos'
|
description: 'create binaries Macos'
|
||||||
|
|
||||||
push:
|
push:
|
||||||
|
43
.github/workflows/cura-installer.yml
vendored
43
.github/workflows/cura-installer.yml
vendored
@ -31,21 +31,6 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
default: true
|
default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
create_binaries_windows:
|
|
||||||
description: 'Installer for Windows'
|
|
||||||
required: true
|
|
||||||
default: true
|
|
||||||
type: boolean
|
|
||||||
create_binaries_linux:
|
|
||||||
description: 'Installer for Linux'
|
|
||||||
required: true
|
|
||||||
default: true
|
|
||||||
type: boolean
|
|
||||||
create_binaries_macos:
|
|
||||||
description: 'Installer for MacOs'
|
|
||||||
required: true
|
|
||||||
default: true
|
|
||||||
type: boolean
|
|
||||||
|
|
||||||
# Run the nightly at 3:25 UTC on working days
|
# Run the nightly at 3:25 UTC on working days
|
||||||
#FIXME: Provide the same default values as the workflow dispatch
|
#FIXME: Provide the same default values as the workflow dispatch
|
||||||
@ -71,7 +56,6 @@ env:
|
|||||||
CURA_CONAN_VERSION: ${{ inputs.cura_conan_version }}
|
CURA_CONAN_VERSION: ${{ inputs.cura_conan_version }}
|
||||||
ENTERPRISE: ${{ inputs.enterprise }}
|
ENTERPRISE: ${{ inputs.enterprise }}
|
||||||
STAGING: ${{ inputs.staging }}
|
STAGING: ${{ inputs.staging }}
|
||||||
OS_NAME: 'unknown-os'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cura-installer-create:
|
cura-installer-create:
|
||||||
@ -80,21 +64,16 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-11, windows-2022, ubuntu-20.04, ubuntu-22.04]
|
include:
|
||||||
exclude:
|
- { os: macos-11, os_id: 'mac' }
|
||||||
- os: ${{ inputs.create_binaries_macos && '' || 'macos-11' }}
|
- { os: windows-2022, os_id: 'win64' }
|
||||||
- os: ${{ inputs.create_binaries_windows && '' || 'windows-2022' }}
|
- { os: ubuntu-20.04, os_id: 'linux' }
|
||||||
- os: ${{ inputs.create_binaries_linux && '' || 'ubuntu-20.04' }}
|
- { os: ubuntu-22.04, os_id: 'linux-modern' }
|
||||||
- os: ${{ inputs.create_binaries_linux && '' || 'ubuntu-22.04' }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Get OS-id String
|
|
||||||
run: |
|
|
||||||
echo "OS_NAME=${{ (matrix.os == 'macos-11' && 'mac') || (matrix.os == 'windows-2022' && 'win64') || (matrix.os == 'ubuntu-20.04' && 'linux') || (matrix.os == 'ubuntu-22.04' && 'linux-modern') || matrix.os }}" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Setup Python and pip
|
- name: Setup Python and pip
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
@ -238,34 +217,34 @@ jobs:
|
|||||||
|
|
||||||
- name: Archive the artifacts (bash)
|
- name: Archive the artifacts (bash)
|
||||||
if: ${{ github.event.inputs.installer == 'false' && runner.os != 'Windows' }}
|
if: ${{ github.event.inputs.installer == 'false' && runner.os != 'Windows' }}
|
||||||
run: tar -zcf "./Ultimaker-Cura-$CURA_VERSION_FULL-${{ env.OS_NAME }}.tar.gz" "./Ultimaker-Cura/"
|
run: tar -zcf "./Ultimaker-Cura-$CURA_VERSION_FULL-${{ matrix.os_id }}.tar.gz" "./Ultimaker-Cura/"
|
||||||
working-directory: dist
|
working-directory: dist
|
||||||
|
|
||||||
- name: Archive the artifacts (Powershell)
|
- name: Archive the artifacts (Powershell)
|
||||||
if: ${{ github.event.inputs.installer == 'false' && runner.os == 'Windows' }}
|
if: ${{ github.event.inputs.installer == 'false' && runner.os == 'Windows' }}
|
||||||
run: Compress-Archive -Path ".\Ultimaker-Cura" -DestinationPath ".\Ultimaker-Cura-$Env:CURA_VERSION_FULL-${{ env.OS_NAME }}.zip"
|
run: Compress-Archive -Path ".\Ultimaker-Cura" -DestinationPath ".\Ultimaker-Cura-$Env:CURA_VERSION_FULL-${{ matrix.os_id }}.zip"
|
||||||
working-directory: dist
|
working-directory: dist
|
||||||
|
|
||||||
- name: Create the Windows exe installer (Powershell)
|
- name: Create the Windows exe installer (Powershell)
|
||||||
if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Windows' }}
|
if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Windows' }}
|
||||||
run: |
|
run: |
|
||||||
python ..\cura_inst\packaging\NSIS\create_windows_installer.py ../cura_inst . "Ultimaker-Cura-$Env:CURA_VERSION_FULL-${{ env.OS_NAME }}.exe"
|
python ..\cura_inst\packaging\NSIS\create_windows_installer.py ../cura_inst . "Ultimaker-Cura-$Env:CURA_VERSION_FULL-${{ matrix.os_id }}.exe"
|
||||||
working-directory: dist
|
working-directory: dist
|
||||||
|
|
||||||
- name: Create the Linux AppImage (Bash)
|
- name: Create the Linux AppImage (Bash)
|
||||||
if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Linux' }}
|
if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Linux' }}
|
||||||
run: python ../cura_inst/packaging/AppImage/create_appimage.py ./Ultimaker-Cura $CURA_VERSION_FULL "Ultimaker-Cura-$CURA_VERSION_FULL-${{ env.OS_NAME }}.AppImage"
|
run: python ../cura_inst/packaging/AppImage/create_appimage.py ./Ultimaker-Cura $CURA_VERSION_FULL "Ultimaker-Cura-$CURA_VERSION_FULL-${{ matrix.os_id }}.AppImage"
|
||||||
working-directory: dist
|
working-directory: dist
|
||||||
|
|
||||||
- name: Create the MacOS dmg (Bash)
|
- name: Create the MacOS dmg (Bash)
|
||||||
if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Macos' }}
|
if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Macos' }}
|
||||||
run: python ../cura_inst/packaging/dmg/dmg_sign_noterize.py ../cura_inst . "Ultimaker-Cura-$CURA_VERSION_FULL-${{ env.OS_NAME }}.dmg"
|
run: python ../cura_inst/packaging/dmg/dmg_sign_noterize.py ../cura_inst . "Ultimaker-Cura-$CURA_VERSION_FULL-${{ matrix.os_id }}.dmg"
|
||||||
working-directory: dist
|
working-directory: dist
|
||||||
|
|
||||||
- name: Upload the artifacts
|
- name: Upload the artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Ultimaker-Cura-${{ env.CURA_VERSION_FULL }}-${{ env.OS_NAME }}
|
name: Ultimaker-Cura-${{ env.CURA_VERSION_FULL }}-${{ matrix.os_id }}
|
||||||
path: |
|
path: |
|
||||||
dist/*.tar.gz
|
dist/*.tar.gz
|
||||||
dist/*.zip
|
dist/*.zip
|
||||||
|
Loading…
x
Reference in New Issue
Block a user