Merge branch '5.1' of github.com:Ultimaker/Cura into 5.1

This commit is contained in:
Jaime van Kessel 2022-07-13 16:37:37 +02:00
commit 9363ab6960
No known key found for this signature in database
GPG Key ID: C85F7A3AF1BAA7C4
30 changed files with 140 additions and 88 deletions

View File

@ -20,16 +20,23 @@ on:
description: "The full semver <Major>.<Minor>.<Patch>-<PreReleaseTag>+<BuildMetaData>"
value: ${{ jobs.get-semver.outputs.semver_full }}
recipe_user:
description: "The conan user"
value: ${{ jobs.get-semver.outputs.user }}
recipe_channel:
description: "The conan channel"
value: ${{ jobs.get-semver.outputs.channel }}
jobs:
get-semver:
runs-on: ubuntu-latest
outputs:
recipe_id_full: ${{ inputs.project_name }}/${{ steps.get-conan-broadcast-data.outputs.version }}@${{ steps.get-conan-broadcast-data.outputs.user }}/${{ steps.get-conan-broadcast-data.outputs.channel }}
recipe_id_latest: ${{ steps.latest-alias.outputs.recipe_id_latest }}
recipe_id_pr: ${{ steps.pr-alias.outputs.recipe_id_pr }}
semver_full: ${{ steps.get-conan-broadcast-data.outputs.version }}
recipe_id_full: ${{ steps.get-conan-broadcast-data.outputs.recipe_id_full }}
recipe_id_latest: ${{ steps.get-conan-broadcast-data.outputs.recipe_id_latest }}
semver_full: ${{ steps.get-conan-broadcast-data.outputs.semver_full }}
user: ${{ steps.get-conan-broadcast-data.outputs.user }}
channel: ${{ steps.get-conan-broadcast-data.outputs.channel }}
@ -40,69 +47,107 @@ jobs:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.13
- name: Setup Python and pip
uses: actions/setup-python@v4
with:
versionSpec: '5.x'
python-version: "3.10.x"
cache: 'pip'
cache-dependency-path: .github/workflows/requirements-conan-package.txt
- name: GitTools
id: git-tool
uses: gittools/actions/gitversion/execute@v0.9.13
- name: Install Python requirements and Create default Conan profile
run: |
pip install -r .github/workflows/requirements-conan-package.txt
pip install gitpython
- id: get-conan-broadcast-data
name: Get Conan broadcast data
run: |
if [ "${{ github.ref_type == 'tag' && github.ref_name == '${{ steps.git-tool.outputs.Major }}.${{ steps.git-tool.outputs.Minor }}.${{ steps.git-tool.outputs.Patch }}' }}" = "true" ]; then
# tagged commits on a release branch matching the major.minor.patch are actual released version and should have no user and channel
# name/major.minor.patch@_/_
echo '::set-output name=user::_'
echo '::set-output name=channel::_'
echo '::set-output name=version::${{ steps.git-tool.outputs.Major }}.${{ steps.git-tool.outputs.Minor }}.${{ steps.git-tool.outputs.Patch }}'
elif [ "${{ github.ref_type == 'tag' && github.ref_name == '${{ steps.git-tool.outputs.Major }}.${{ steps.git-tool.outputs.Minor }}.${{ steps.git-tool.outputs.Patch }}-BETA' }}" = "true" ]; then
# tagged commits with major.minor.patch-BETA on a release branch are actual released version and should have no user and channel
# name/major.minor.patch-beta@_/_
echo '::set-output name=user::_'
echo '::set-output name=channel::_'
echo '::set-output name=version::${{ steps.git-tool.outputs.Major }}.${{ steps.git-tool.outputs.Minor }}.${{ steps.git-tool.outputs.Patch }}-${{ steps.git-tool.outputs.PreReleaseLabel }}'
elif [ "${{ github.ref_name == 'main' || github.ref_name == 'master' }}" = "true" ]; then
# commits on main/master are alpha's (nightlies) and are considered testing
# name/major.minor.patch-alpha+build@ultimaker/testing
echo ${{ github.repository_owner }} | awk '{print "::set-output name=user::"tolower($0)}'
echo '::set-output name=channel::testing'
echo '::set-output name=version::${{ steps.git-tool.outputs.Major }}.${{ steps.git-tool.outputs.Minor }}.${{ steps.git-tool.outputs.Patch }}-${{ steps.git-tool.outputs.PreReleaseLabel }}+${{ steps.git-tool.outputs.BuildMetaData }}'
elif [ "${{ github.ref_name == '5.1' }}" = "true" ]; then
# commits on release branches are beta's and are considered stable
# name/major.minor.patch-beta+build@ultimaker/stable
# FIXME: For release branches: maybe rename the branch to release/**
echo ${{ github.repository_owner }} | awk '{print "::set-output name=user::"tolower($0)}'
echo '::set-output name=channel::stable'
echo '::set-output name=version::${{ steps.git-tool.outputs.Major }}.${{ steps.git-tool.outputs.Minor }}.${{ steps.git-tool.outputs.Patch }}-${{ steps.git-tool.outputs.PreReleaseLabel }}+${{ steps.git-tool.outputs.BuildMetaData }}'
else
# commits on other branches are considered unstable and for development purposes only
# Use the Cura branch naming scheme CURA-1234_foo_bar
# we use the first 9 characters of the branch name
# name/major.minor.patch-beta+build@ultimaker/cura_<jira_number>
echo ${{ github.repository_owner }} | awk '{print "::set-output name=user::"tolower($0)}'
branch=${{ github.ref_name }}
sanitized_branch="${branch//-/_}"
echo $sanitized_branch | awk '{print "::set-output name=channel::"substr(tolower($0),0,9)}'
echo '::set-output version=${{ steps.git-tool.outputs.Major }}.${{ steps.git-tool.outputs.Minor }}.${{ steps.git-tool.outputs.Patch }}-${{ steps.git-tool.outputs.PreReleaseLabel }}+${{ steps.git-tool.outputs.BuildMetaData }}'
fi
- name: Get pull request alias
id: pr-alias
run: |
if [ "${{ github.event_name == 'pull_request' }}" = "true" ]; then
# pull request events are considered unstable and are for testing purposes
# name/latest@ultimaker/pr_<number>
echo "::set-output name=recipe_id_pr::${{ inputs.project_name }}/latest@${{ steps.get-conan-broadcast-data.outputs.user }}/pr_$PR_NUMBER"
else
echo "::set-output name=recipe_id_pr::''"
fi
env:
PR_NUMBER: ${{ github.event.issue.number }}
- name: Get latest alias
id: latest-alias
run: |
echo "::set-output name=recipe_id_latest::${{ inputs.project_name }}/latest@${{ steps.get-conan-broadcast-data.outputs.user }}/${{ steps.get-conan-broadcast-data.outputs.channel }}"
import subprocess
from conans import tools
from conans.errors import ConanException
from git import Repo
repo = Repo('.')
user = "${{ github.repository_owner }}"
project_name = "${{ inputs.project_name }}"
event_name = "${{ github.event_name }}"
issue_number = "${{ github.ref }}".split('/')[2]
is_tag = "${{ github.ref_type }}" == "tag"
# FIXME: for when we push a tag (such as an release)
if is_tag:
branch_version = tools.Version("2.3.5")
else:
try:
branch_version = tools.Version(repo.active_branch.name)
channel = "stable"
except ConanException:
branch_version = tools.Version('0.0.0')
if repo.active_branch.name == f"{branch_version.major}.{branch_version.minor}":
channel = 'stable'
elif repo.active_branch.name == "main" or repo.active_branch.name == "master":
channel = 'testing'
else:
channel = repo.active_branch.name.split("_")[0].replace("-", "_").lower()
if event_name == "pull_request":
channel = f"pr_{issue_number}"
# %% Get the actual version
latest_branch_version = tools.Version("0.0.0")
latest_branch_tag = None
for tag in repo.git.tag(merged = True).splitlines():
try:
version = tools.Version(tag)
except ConanException:
continue
if version > latest_branch_version:
latest_branch_version = version
latest_branch_tag = repo.tag(tag)
# %% Get the actual version
no_commits = 0
for commit in repo.iter_commits("HEAD"):
if commit == latest_branch_tag.commit:
break
no_commits += 1
if no_commits == 0:
# This is a release
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}"
if channel == "stable":
user = "_"
channel = "_"
else:
if event_name == "pull_request":
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-{latest_branch_version.prerelease.lower()}+pr_{issue_number}_{no_commits}"
else:
if latest_branch_version.prerelease == "":
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-alpha+{no_commits}"
else:
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-{latest_branch_version.prerelease.lower()}+{no_commits}"
# %% print to output
cmd_name = ["echo", f"::set-output name=name::{project_name}"]
subprocess.call(cmd_name)
cmd_version = ["echo", f"::set-output name=version::{actual_version}"]
subprocess.call(cmd_version)
cmd_channel = ["echo", f"::set-output name=channel::{channel}"]
subprocess.call(cmd_channel)
cmd_id_full= ["echo", f"::set-output name=recipe_id_full::{project_name}/{actual_version}@{user}/{channel}"]
subprocess.call(cmd_id_full)
cmd_id_latest = ["echo", f"::set-output name=recipe_id_latest::{project_name}/latest@{user}/{channel}"]
subprocess.call(cmd_id_latest)
cmd_semver_full = ["echo", f"::set-output name=semver_full::{actual_version}"]
subprocess.call(cmd_semver_full)
print("::group::Conan Recipe Information")
print(f"name = {project_name}")
print(f"version = {actual_version}")
print(f"user = {user}")
print(f"channel = {channel}")
print(f"recipe_id_full = {project_name}/{actual_version}@{user}/{channel}")
print(f"recipe_id_latest = {project_name}/latest@{user}/{channel}")
print(f"semver_full = {actual_version}")
print("::endgroup::")
shell: python

View File

@ -57,7 +57,11 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ macos-10.15, windows-2022, ubuntu-20.04 ]
include:
- { os: macos-10.15, os_id: 'MacOS' }
- { os: windows-2022, os_id: 'Windows' }
- { os: ubuntu-20.04, os_id: 'Linux' }
- { os: ubuntu-22.04, os_id: 'Linux-latest' }
steps:
- name: Checkout
@ -109,7 +113,7 @@ jobs:
- name: Install Linux system requirements
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt install build-essential checkinstall zlib1g-dev libssl-dev ninja-build autoconf libx11-dev libx11-xcb-dev libfontenc-dev libice-dev libsm-dev libxau-dev libxaw7-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxvmc-dev libxxf86vm-dev xtrans-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev xkb-data libxcb-dri3-dev uuid-dev libxcb-util-dev libxkbcommon-x11-dev -y
sudo apt install build-essential checkinstall libegl-dev zlib1g-dev libssl-dev ninja-build autoconf libx11-dev libx11-xcb-dev libfontenc-dev libice-dev libsm-dev libxau-dev libxaw7-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxvmc-dev libxxf86vm-dev xtrans-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev xkb-data libxcb-dri3-dev uuid-dev libxcb-util-dev libxkbcommon-x11-dev -y
wget --no-check-certificate --quiet https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O $GITHUB_WORKSPACE/appimagetool
chmod +x $GITHUB_WORKSPACE/appimagetool
echo "APPIMAGETOOL_LOCATION=$GITHUB_WORKSPACE/appimagetool" >> $GITHUB_ENV
@ -164,35 +168,35 @@ jobs:
- name: Archive the artifacts (bash)
if: ${{ github.event.inputs.installer == 'false' && runner.os != 'Windows' }}
run: tar -zcf "./Ultimaker-Cura-$CURA_VERSION_FULL-${{ runner.os }}-${{ runner.arch }}.tar.gz" "./Ultimaker-Cura/"
run: tar -zcf "./Ultimaker-Cura-$CURA_VERSION_FULL-${{ matrix.os_id }}-${{ runner.arch }}.tar.gz" "./Ultimaker-Cura/"
working-directory: dist
- name: Archive the artifacts (Powershell)
if: ${{ github.event.inputs.installer == 'false' && runner.os == 'Windows' }}
run: Compress-Archive -Path ".\Ultimaker-Cura" -DestinationPath ".\Ultimaker-Cura-$Env:CURA_VERSION_FULL-${{ runner.os }}-${{ runner.arch }}.zip"
run: Compress-Archive -Path ".\Ultimaker-Cura" -DestinationPath ".\Ultimaker-Cura-$Env:CURA_VERSION_FULL-${{ matrix.os_id }}-${{ runner.arch }}.zip"
working-directory: dist
- name: Create the Windows exe installer (Powershell)
if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Windows' }}
run: |
python ..\cura_inst\packaging\NSIS\nsis-configurator.py ".\Ultimaker-Cura" "..\cura_inst\packaging\NSIS\Ultimaker-Cura.nsi.jinja" "Ultimaker Cura" "Ultimaker-Cura.exe" "$Env:CURA_VERSION_MAJOR" "$Env:CURA_VERSION_MINOR" "$Env:CURA_VERSION_PATCH" "$Env:CURA_VERSION_BUILD" "Ultimaker B.V." "https://ultimaker.com" "..\cura_inst\packaging\cura_license.txt" "LZMA" "..\cura_inst\packaging\NSIS\cura_banner_nsis.bmp" "..\cura_inst\packaging\icons\Cura.ico" "Ultimaker-Cura-$Env:CURA_VERSION_FULL-${{ runner.os }}-${{ runner.arch }}.exe"
python ..\cura_inst\packaging\NSIS\nsis-configurator.py ".\Ultimaker-Cura" "..\cura_inst\packaging\NSIS\Ultimaker-Cura.nsi.jinja" "Ultimaker Cura" "Ultimaker-Cura.exe" "$Env:CURA_VERSION_MAJOR" "$Env:CURA_VERSION_MINOR" "$Env:CURA_VERSION_PATCH" "$Env:CURA_VERSION_BUILD" "Ultimaker B.V." "https://ultimaker.com" "..\cura_inst\packaging\cura_license.txt" "LZMA" "..\cura_inst\packaging\NSIS\cura_banner_nsis.bmp" "..\cura_inst\packaging\icons\Cura.ico" "Ultimaker-Cura-$Env:CURA_VERSION_FULL-${{ matrix.os_id }}-${{ runner.arch }}.exe"
makensis /V2 /P4 Ultimaker-Cura.nsi
working-directory: dist
- name: Create the Linux AppImage (Bash)
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-${{ runner.os }}-${{ runner.arch }}.AppImage"
run: python ../cura_inst/packaging/AppImage/create_appimage.py ./Ultimaker-Cura $CURA_VERSION_FULL "Ultimaker-Cura-$CURA_VERSION_FULL-${{ matrix.os_id }}-${{ runner.arch }}.AppImage"
working-directory: dist
- name: Create the MacOS dmg (Bash)
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-${{ runner.os }}-${{ runner.arch }}.dmg"
run: python ../cura_inst/packaging/dmg/dmg_sign_noterize.py ../cura_inst . "Ultimaker-Cura-$CURA_VERSION_FULL-${{ matrix.os_id }}-${{ runner.arch }}.dmg"
working-directory: dist
- name: Upload the artifacts
uses: actions/upload-artifact@v3
with:
name: Ultimaker-Cura-${{ env.CURA_VERSION_FULL }}-${{ runner.os }}-${{ runner.arch }}
name: Ultimaker-Cura-${{ env.CURA_VERSION_FULL }}-${{ matrix.os_id }}-${{ runner.arch }}
path: |
dist/*.tar.gz
dist/*.zip

View File

@ -1,2 +1,2 @@
conan
sip==6.5.1
sip==6.5.1

View File

@ -8040,7 +8040,7 @@
"description": "Alternate wall directions every other layer and inset. Useful for materials that can build up stress, like for metal printing.",
"type": "bool",
"default_value": false,
"enabled": false,
"enabled": true,
"settable_per_mesh": true,
"settable_per_extruder": true
},

View File

@ -12,6 +12,7 @@ material = generic_bam
variant = AA 0.4
[values]
support_infill_sparse_thickness = =2*layer_height
brim_replaces_support = False
cool_fan_full_at_height = =layer_height_0 + 2 * layer_height
cool_fan_speed_max = =cool_fan_speed

View File

@ -12,6 +12,7 @@ material = generic_bam
variant = AA 0.4
[values]
support_infill_sparse_thickness = =2*layer_height
brim_replaces_support = False
cool_fan_full_at_height = =layer_height_0 + 2 * layer_height
cool_fan_speed_max = =cool_fan_speed

View File

@ -12,6 +12,7 @@ material = generic_pva
variant = BB 0.4
[values]
support_infill_sparse_thickness = =2*layer_height
brim_replaces_support = False
material_print_temperature = =default_material_print_temperature + 5
material_standby_temperature = 100

View File

@ -12,6 +12,7 @@ material = generic_pva
variant = BB 0.4
[values]
support_infill_sparse_thickness = =3*layer_height
brim_replaces_support = False
material_standby_temperature = 100
prime_tower_enable = False

View File

@ -12,6 +12,7 @@ material = generic_pva
variant = BB 0.4
[values]
support_infill_sparse_thickness = =2*layer_height
brim_replaces_support = False
material_standby_temperature = 100
prime_tower_enable = False

View File

@ -13,7 +13,6 @@ variant = BB 0.8
[values]
brim_replaces_support = False
layer_height = 0.4
material_standby_temperature = 100
retraction_count_max = 5
support_brim_enable = True

View File

@ -13,11 +13,9 @@ variant = BB 0.8
[values]
brim_replaces_support = False
layer_height = 0.3
material_standby_temperature = 100
retraction_count_max = 5
support_brim_enable = True
support_infill_sparse_thickness = 0.3
support_interface_enable = True
skirt_brim_minimal_length = =min(2000, 175/(layer_height*line_width))
cool_fan_enabled = =not (support_enable and (extruder_nr == support_infill_extruder_nr))

View File

@ -11,5 +11,4 @@ weight = -1
global_quality = True
[values]
layer_height = 0.15
support_infill_sparse_thickness = =2*layer_height
layer_height = 0.15

View File

@ -11,5 +11,4 @@ weight = 1
global_quality = True
[values]
layer_height = 0.06
support_infill_sparse_thickness = =3*layer_height
layer_height = 0.06

View File

@ -12,4 +12,3 @@ global_quality = True
[values]
layer_height = 0.1
support_infill_sparse_thickness = =2*layer_height

View File

@ -12,6 +12,7 @@ material = generic_bam
variant = AA 0.4
[values]
support_infill_sparse_thickness = =2*layer_height
brim_replaces_support = False
cool_fan_full_at_height = =layer_height_0 + 2 * layer_height
cool_fan_speed_max = =cool_fan_speed

View File

@ -12,6 +12,7 @@ material = generic_bam
variant = AA 0.4
[values]
support_infill_sparse_thickness = =2*layer_height
brim_replaces_support = False
cool_fan_full_at_height = =layer_height_0 + 2 * layer_height
cool_fan_speed_max = =cool_fan_speed

View File

@ -12,6 +12,7 @@ material = generic_pva
variant = BB 0.4
[values]
support_infill_sparse_thickness = =2*layer_height
brim_replaces_support = False
material_print_temperature = =default_material_print_temperature + 5
material_standby_temperature = 100

View File

@ -12,6 +12,7 @@ material = generic_pva
variant = BB 0.4
[values]
support_infill_sparse_thickness = =3*layer_height
brim_replaces_support = False
material_standby_temperature = 100
prime_tower_enable = False

View File

@ -12,6 +12,7 @@ material = generic_pva
variant = BB 0.4
[values]
support_infill_sparse_thickness = =2*layer_height
brim_replaces_support = False
material_standby_temperature = 100
prime_tower_enable = False

View File

@ -12,4 +12,3 @@ global_quality = True
[values]
layer_height = 0.15
support_infill_sparse_thickness = =2*layer_height

View File

@ -12,4 +12,3 @@ global_quality = True
[values]
layer_height = 0.06
support_infill_sparse_thickness = =3*layer_height

View File

@ -12,4 +12,3 @@ global_quality = True
[values]
layer_height = 0.1
support_infill_sparse_thickness = =2*layer_height

View File

@ -12,6 +12,7 @@ material = generic_bam
variant = AA 0.4
[values]
support_infill_sparse_thickness = =2*layer_height
brim_replaces_support = False
cool_fan_full_at_height = =layer_height_0 + 2 * layer_height
cool_fan_speed_max = =cool_fan_speed

View File

@ -12,6 +12,7 @@ material = generic_bam
variant = AA 0.4
[values]
support_infill_sparse_thickness = =2*layer_height
brim_replaces_support = False
cool_fan_full_at_height = =layer_height_0 + 2 * layer_height
cool_fan_speed_max = =cool_fan_speed

View File

@ -12,6 +12,7 @@ material = generic_pva
variant = BB 0.4
[values]
support_infill_sparse_thickness = =2*layer_height
brim_replaces_support = False
material_print_temperature = =default_material_print_temperature + 5
material_standby_temperature = 100

View File

@ -12,6 +12,7 @@ material = generic_pva
variant = BB 0.4
[values]
support_infill_sparse_thickness = =3*layer_height
brim_replaces_support = False
material_standby_temperature = 100
prime_tower_enable = False

View File

@ -12,6 +12,7 @@ material = generic_pva
variant = BB 0.4
[values]
support_infill_sparse_thickness = =2*layer_height
brim_replaces_support = False
material_standby_temperature = 100
prime_tower_enable = False

View File

@ -12,4 +12,3 @@ global_quality = True
[values]
layer_height = 0.15
support_infill_sparse_thickness = =2*layer_height

View File

@ -12,4 +12,3 @@ global_quality = True
[values]
layer_height = 0.06
support_infill_sparse_thickness = =3*layer_height

View File

@ -12,4 +12,3 @@ global_quality = True
[values]
layer_height = 0.1
support_infill_sparse_thickness = =2*layer_height