mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:29:05 +08:00
Synced main workflows with 5.3.0
This commit is contained in:
parent
0da0cb67ba
commit
90b794d7dd
18
.github/workflows/conan-recipe-version.yml
vendored
18
.github/workflows/conan-recipe-version.yml
vendored
@ -170,9 +170,21 @@ jobs:
|
|||||||
bump_up_release_tag = int(latest_branch_version.prerelease.split('.')[1]) + 1
|
bump_up_release_tag = int(latest_branch_version.prerelease.split('.')[1]) + 1
|
||||||
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-{latest_branch_version.prerelease.split('.')[0]}.{bump_up_release_tag}+{buildmetadata}{channel_metadata}"
|
actual_version = f"{latest_branch_version.major}.{latest_branch_version.minor}.{latest_branch_version.patch}-{latest_branch_version.prerelease.split('.')[0]}.{bump_up_release_tag}+{buildmetadata}{channel_metadata}"
|
||||||
else:
|
else:
|
||||||
bump_up_minor = int(latest_branch_version.minor) + 1
|
max_branches_version = tools.Version("0.0.0")
|
||||||
reset_patch = 0
|
branches_no_commits = no_commits
|
||||||
actual_version = f"{latest_branch_version.major}.{bump_up_minor}.{reset_patch}-alpha+{buildmetadata}{channel_metadata}"
|
for branch in repo.references:
|
||||||
|
try:
|
||||||
|
if "remotes/origin" in branch.abspath:
|
||||||
|
b_version = tools.Version(branch.name.split("/")[-1])
|
||||||
|
if b_version < tools.Version("10.0.0") and b_version > max_branches_version:
|
||||||
|
max_branches_version = b_version
|
||||||
|
branches_no_commits = repo.commit().count() - branch.commit.count()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
if max_branches_version > latest_branch_version:
|
||||||
|
actual_version = f"{max_branches_version.major}.{int(max_branches_version.minor) + 1}.0-alpha+{buildmetadata}{channel}_{branches_no_commits}"
|
||||||
|
else:
|
||||||
|
actual_version = f"{latest_branch_version.major}.{int(latest_branch_version.minor) + 1}.0-alpha+{buildmetadata}{channel_metadata}"
|
||||||
|
|
||||||
# %% Set the environment output
|
# %% Set the environment output
|
||||||
output_env = os.environ["GITHUB_OUTPUT"]
|
output_env = os.environ["GITHUB_OUTPUT"]
|
||||||
|
4
.github/workflows/cura-installer.yml
vendored
4
.github/workflows/cura-installer.yml
vendored
@ -122,6 +122,10 @@ jobs:
|
|||||||
if: ${{ runner.os == 'Macos' }}
|
if: ${{ runner.os == 'Macos' }}
|
||||||
run: brew install autoconf automake ninja create-dmg # Delete create-dmg when deprecating dmg
|
run: brew install autoconf automake ninja create-dmg # Delete create-dmg when deprecating dmg
|
||||||
|
|
||||||
|
- name: Hack needed specifically for ubuntu-22.04 from mid-Feb 2023 onwards
|
||||||
|
if: ${{ runner.os == 'Linux' && startsWith(inputs.platform, 'ubuntu-22.04') }}
|
||||||
|
run: sudo apt remove libodbc2 libodbcinst2 unixodbc-common -y
|
||||||
|
|
||||||
- name: Install Linux system requirements
|
- name: Install Linux system requirements
|
||||||
if: ${{ runner.os == 'Linux' }}
|
if: ${{ runner.os == 'Linux' }}
|
||||||
run: |
|
run: |
|
||||||
|
15
.github/workflows/printer-linter-format.yml
vendored
15
.github/workflows/printer-linter-format.yml
vendored
@ -18,19 +18,20 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Python and pip
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: 3.11.x
|
|
||||||
cache: 'pip'
|
|
||||||
cache-dependency-path: .github/workflows/requirements-printer-linter.txt
|
|
||||||
|
|
||||||
- uses: technote-space/get-diff-action@v6
|
- uses: technote-space/get-diff-action@v6
|
||||||
with:
|
with:
|
||||||
PATTERNS: |
|
PATTERNS: |
|
||||||
resources/+(definitions|extruders)/*.def.json
|
resources/+(definitions|extruders)/*.def.json
|
||||||
resources/+(intent|quality|variants)/**/*.inst.cfg
|
resources/+(intent|quality|variants)/**/*.inst.cfg
|
||||||
|
|
||||||
|
- name: Setup Python and pip
|
||||||
|
if: env.GIT_DIFF && !env.MATCHED_FILES # If nothing happens with python and/or pip after, the clean-up crashes.
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: 3.11.x
|
||||||
|
cache: 'pip'
|
||||||
|
cache-dependency-path: .github/workflows/requirements-printer-linter.txt
|
||||||
|
|
||||||
- name: Install Python requirements for runner
|
- name: Install Python requirements for runner
|
||||||
if: env.GIT_DIFF && !env.MATCHED_FILES
|
if: env.GIT_DIFF && !env.MATCHED_FILES
|
||||||
run: pip install -r .github/workflows/requirements-printer-linter.txt
|
run: pip install -r .github/workflows/requirements-printer-linter.txt
|
||||||
|
15
.github/workflows/printer-linter-pr-diagnose.yml
vendored
15
.github/workflows/printer-linter-pr-diagnose.yml
vendored
@ -16,19 +16,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
|
|
||||||
- name: Setup Python and pip
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: 3.11.x
|
|
||||||
cache: "pip"
|
|
||||||
cache-dependency-path: .github/workflows/requirements-printer-linter.txt
|
|
||||||
|
|
||||||
- uses: technote-space/get-diff-action@v6
|
- uses: technote-space/get-diff-action@v6
|
||||||
with:
|
with:
|
||||||
PATTERNS: |
|
PATTERNS: |
|
||||||
resources/+(extruders|definitions)/*.def.json
|
resources/+(extruders|definitions)/*.def.json
|
||||||
resources/+(intent|quality|variants)/**/*.inst.cfg
|
resources/+(intent|quality|variants)/**/*.inst.cfg
|
||||||
|
|
||||||
|
- name: Setup Python and pip
|
||||||
|
if: env.GIT_DIFF && !env.MATCHED_FILES # If nothing happens with python and/or pip after, the clean-up crashes.
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: 3.11.x
|
||||||
|
cache: "pip"
|
||||||
|
cache-dependency-path: .github/workflows/requirements-printer-linter.txt
|
||||||
|
|
||||||
- name: Install Python requirements for runner
|
- name: Install Python requirements for runner
|
||||||
if: env.GIT_DIFF && !env.MATCHED_FILES
|
if: env.GIT_DIFF && !env.MATCHED_FILES
|
||||||
run: pip install -r .github/workflows/requirements-printer-linter.txt
|
run: pip install -r .github/workflows/requirements-printer-linter.txt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user