mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-31 11:41:59 +08:00
Allow for a bool to only build from local cache
This is a workaround to allow further development of this Action until we have the JFrog server up and running. Contributes to CURA-9365
This commit is contained in:
parent
d64e20c71d
commit
e1fcca3d9c
16
.github/workflows/conan-package-create.yml
vendored
16
.github/workflows/conan-package-create.yml
vendored
@ -23,6 +23,11 @@ on:
|
||||
required: false
|
||||
type: string
|
||||
|
||||
# FIXME: Once we have the new JFrog server up and running
|
||||
conan_no_update:
|
||||
required: false
|
||||
type: boolean
|
||||
|
||||
env:
|
||||
CONAN_LOGIN_USERNAME_ULTIMAKER: ${{ secrets.CONAN_USER }}
|
||||
CONAN_PASSWORD_ULTIMAKER: ${{ secrets.CONAN_PASS }}
|
||||
@ -51,11 +56,11 @@ jobs:
|
||||
conan profile new default --detect
|
||||
|
||||
- name: Get Conan configuration from branch
|
||||
if: "${{ inputs.conan_config_branch == '' }}"
|
||||
if: ${{ inputs.conan_config_branch == '' }}
|
||||
run: conan config install https://github.com/Ultimaker/conan-config.git -a "-b ${{ inputs.conan_config_branch }}"
|
||||
|
||||
- name: Get Conan configuration
|
||||
if: "${{ inputs.conan_config_branch != '' }}"
|
||||
if: ${{ inputs.conan_config_branch != '' }}
|
||||
run: conan config install https://github.com/Ultimaker/conan-config.git
|
||||
|
||||
- name: Cache Conan local repository packages (Bash)
|
||||
@ -75,7 +80,14 @@ jobs:
|
||||
key: ${{ runner.os }}-conan
|
||||
|
||||
- name: Create the Packages
|
||||
if: ${{ inputs.conan_no_update != 'true' }} # FIXME: Once we have the new JFrog server up and running
|
||||
run: conan install ${{ inputs.recipe_id_full }} -pr:b cura_build.jinja -pr:h cura_release.jinja --build=missing --update
|
||||
|
||||
# FIXME: Once we have the new JFrog server up and running
|
||||
- name: Create the Packages
|
||||
if: ${{ inputs.conan_no_update == 'true' }}
|
||||
run: conan install ${{ inputs.recipe_id_full }} -pr:b cura_build.jinja -pr:h cura_release.jinja --build=missing
|
||||
|
||||
- name: Upload the Package(s)
|
||||
if: ${{ inputs.conan_no_update == 'true' }} # FIXME: Once we have the new JFrog server up and running
|
||||
run: conan upload "*" -r ultimaker --all -c
|
||||
|
12
.github/workflows/conan-recipe-export.yml
vendored
12
.github/workflows/conan-recipe-export.yml
vendored
@ -27,6 +27,11 @@ on:
|
||||
required: false
|
||||
type: string
|
||||
|
||||
# FIXME: Once we have the new JFrog server up and running
|
||||
conan_no_update:
|
||||
required: false
|
||||
type: boolean
|
||||
|
||||
env:
|
||||
CONAN_LOGIN_USERNAME_ULTIMAKER: ${{ secrets.CONAN_USER }}
|
||||
CONAN_PASSWORD_ULTIMAKER: ${{ secrets.CONAN_PASS }}
|
||||
@ -55,11 +60,11 @@ jobs:
|
||||
conan profile new default --detect
|
||||
|
||||
- name: Get Conan configuration from branch
|
||||
if: "${{ inputs.conan_config_branch == '' }}"
|
||||
if: ${{ inputs.conan_config_branch == '' }}
|
||||
run: conan config install https://github.com/Ultimaker/conan-config.git -a "-b ${{ inputs.conan_config_branch }}"
|
||||
|
||||
- name: Get Conan configuration
|
||||
if: "${{ inputs.conan_config_branch != '' }}"
|
||||
if: ${{ inputs.conan_config_branch != '' }}
|
||||
run: conan config install https://github.com/Ultimaker/conan-config.git
|
||||
|
||||
- name: Cache Conan local repository packages
|
||||
@ -72,8 +77,9 @@ jobs:
|
||||
run: conan export . ${{ inputs.recipe_id_full }}
|
||||
|
||||
- name: Create the latest alias
|
||||
if: "${{ inputs.recipe_id_latest == '' }}"
|
||||
if: ${{ inputs.recipe_id_latest == '' }}
|
||||
run: conan alias ${{ inputs.recipe_id_latest }} ${{ inputs.recipe_id_full }}
|
||||
|
||||
- name: Upload the Package(s)
|
||||
if: ${{ inputs.conan_no_update == 'true' }} # FIXME: Once we have the new JFrog server up and running
|
||||
run: conan upload "*" -r ultimaker --all -c
|
||||
|
Loading…
x
Reference in New Issue
Block a user