Skip to content

Use Conan v2

Use Conan v2 #23

Workflow file for this run

name: conan-package-export
on:
push:
paths:
- 'recipes/**'
branches:
- main
- 'CURA-*'
- 'PP-*'
- 'NP-*'
permissions:
contents: read
env:
CONAN_LOGIN_USERNAME: ${{ secrets.CONAN_USER }}
CONAN_PASSWORD: ${{ secrets.CONAN_PASS }}
jobs:
conan-package-export:
name: Conan Package Export
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: technote-space/get-diff-action@v6
with:
PATTERNS: |
recipes/**/*.*
# FIXME: use main once merged
- name: Sync pip requirements
run: wget https://raw.githubusercontent.com/Ultimaker/cura-workflows/CURA-11622_conan_v2/.github/workflows/requirements-runner.txt -O .github/workflows/requirements-runner.txt
- name: Setup Python and pip
uses: actions/setup-python@v4
with:
python-version: 3.11.x
cache: pip
cache-dependency-path: .github/workflows/requirements-runner.txt
- name: Install Python requirements and Create default Conan profile
run: pip install -r .github/workflows/requirements-runner.txt
- name: Create default Conan profile
run: conan profile detect -f
# FIXME: use runner.os/runner.arch after merge: conan config install https://github.com/Ultimaker/conan-config.git -a "-b runner/${{ runner.os }}/${{ runner.arch }}"

Check failure on line 53 in .github/workflows/conan-package.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/conan-package.yml

Invalid workflow file

You have an error in your yaml syntax on line 53
- name: Get Conan configuration
run: |
conan config install https://github.com/Ultimaker/conan-config.git -a "-b CURA-11622_conan_v2"
# conan remote disable cura-private
conan remote login -p ${{ secrets.CONAN_PASS }} cura-conan-v2 ${{ secrets.CONAN_USER }}
# TODO: Change to main once merged
- name: Export changed recipes
run: |
mkdir runner_scripts
wget https://raw.githubusercontent.com/Ultimaker/cura-workflows/CURA-11622_conan_v2/runner_scripts/upload_conan_recipes.py -O runner_scripts/upload_conan_recipes.py
python runner_scripts/upload_conan_recipes.py --user ultimaker --branch ${{ github.ref_name }} --remote cura-conan-v2 ${{ env.GIT_DIFF_FILTERED }}