From 0a05760c6a757cd808c8c62459d746a83943a8a8 Mon Sep 17 00:00:00 2001 From: Shin Umeda Date: Wed, 13 May 2026 13:03:03 -0700 Subject: [PATCH 1/2] build tools do not depend on the compiler type or build type --- picotool/conanfile.py | 4 ++++ pioasm/conanfile.py | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/picotool/conanfile.py b/picotool/conanfile.py index ae8bd5e..cffbc97 100644 --- a/picotool/conanfile.py +++ b/picotool/conanfile.py @@ -85,3 +85,7 @@ def build(self): def package(self): cmake = CMake(self) cmake.install() + + def package_id(self): + del self.info.settings.compiler + del self.info.settings.build_type \ No newline at end of file diff --git a/pioasm/conanfile.py b/pioasm/conanfile.py index edf8286..78e4e45 100644 --- a/pioasm/conanfile.py +++ b/pioasm/conanfile.py @@ -73,5 +73,6 @@ def package(self): cmake = CMake(self) cmake.install() - def package_info(self): - pass + def package_id(self): + del self.info.settings.compiler + del self.info.settings.build_type \ No newline at end of file From 0cafcd0c09fdf2c49f4af5eb5311ce9667c6154b Mon Sep 17 00:00:00 2001 From: Shin Umeda Date: Wed, 13 May 2026 13:21:10 -0700 Subject: [PATCH 2/2] do not run conan with sudo. install necessary dependencies beforehand. --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 35565f9..6438b1e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,10 @@ jobs: run: conan create picotool -b missing --version=2.2.0 -pr:a hal/tc/llvm -c tools.build:sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk - if: ${{ startsWith(matrix.os, 'ubuntu') }} - run: sudo -E $(which conan) create picotool -b missing --version=2.2.0 -pr:a hal/tc/llvm -c tools.system.package_manager:mode=install + run: sudo apt-get install libusb libusb-dev + + - if: ${{ startsWith(matrix.os, 'ubuntu') }} + run: conan create picotool -b missing --version=2.2.0 -pr:a hal/tc/llvm - if: ${{ startsWith(matrix.os, 'windows') }} run: conan create picotool -b missing --version=2.2.0 -c tools.cmake.cmaketoolchain:generator="NMake Makefiles"