From c425e1db977aededeed2911ddd407b371612abea Mon Sep 17 00:00:00 2001 From: Ruslan Sayfutdinov Date: Thu, 16 Jan 2025 08:06:22 -0800 Subject: [PATCH] Install conan using uv (#845) Summary: Pull Request resolved: https://github.com/facebook/buck2/pull/845 Linux CI is currently broken because pip tries to remove system package. uv installs each tool in its own virtualenv and it's much faster than pip. Reviewed By: blackm00n Differential Revision: D68271455 fbshipit-source-id: 9d1cd36bf8e0097a6af013895e9d9567a1a9069f --- .github/actions/setup_linux_env/action.yml | 4 +++- .github/actions/setup_macos_env/action.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup_linux_env/action.yml b/.github/actions/setup_linux_env/action.yml index 435993abd1dd..df0279d8d079 100644 --- a/.github/actions/setup_linux_env/action.yml +++ b/.github/actions/setup_linux_env/action.yml @@ -19,8 +19,10 @@ runs: - uses: haskell-actions/setup@v2 with: ghc-version: '9.10.1' + - name: Install uv + uses: astral-sh/setup-uv@v5 - name: Install conan - run: sudo pip3 install conan==1.* + run: uv tool install conan==1.* shell: bash - uses: actions/setup-go@v5 with: diff --git a/.github/actions/setup_macos_env/action.yml b/.github/actions/setup_macos_env/action.yml index c531fe71ecd4..0127df309ea2 100644 --- a/.github/actions/setup_macos_env/action.yml +++ b/.github/actions/setup_macos_env/action.yml @@ -15,8 +15,10 @@ runs: - name: Brew install run: brew install cmake python3 coreutils opam llvm protobuf zstd shell: bash + - name: Install uv + uses: astral-sh/setup-uv@v5 - name: Install conan - run: sudo pip3 install --break-system-packages conan==1.* + run: uv tool install conan==1.* shell: bash - uses: "./.github/actions/print_versions" - uses: actions/setup-go@v5