From 28884eb8702a039168e9990bbc188dacf537a5dc Mon Sep 17 00:00:00 2001 From: lia <167905060+lia-viam@users.noreply.github.com> Date: Tue, 11 Aug 2026 11:41:09 -0400 Subject: [PATCH] Revert "ci: cache ~/.conan2 in build workflow (#84)" This reverts commit 7fa563f0369cb336c2113efea1636662972be9f3. --- .github/workflows/build.yml | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 08ebded..68dac31 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,15 +18,6 @@ jobs: - name: Install deps run: choco install -y conan git - # Skips the Conan rebuild of viam-cpp-sdk on cache hit. - - name: Cache Conan packages - uses: actions/cache@v4 - with: - path: ~/.conan2 - key: conan-${{ runner.os }}-${{ hashFiles('conanfile.py') }} - restore-keys: | - conan-${{ runner.os }}- - - name: Set up python/conan shell: powershell # Powershell will not exit on error without the line below...highly vexing. @@ -36,9 +27,9 @@ jobs: Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1 refreshenv - conan profile detect --force + conan profile detect - conan remote add viamconan https://viam.jfrog.io/artifactory/api/conan/viamconan --index 0 --force + conan remote add viamconan https://viam.jfrog.io/artifactory/api/conan/viamconan --index 0 env: CONAN_USER_HOME: c:/cache @@ -88,22 +79,12 @@ jobs: apt upgrade -y apt install -y cmake python3.11 python3.11-venv wget - # Skips the Conan rebuild of viam-cpp-sdk on cache hit. matrix.os keeps - # amd64 / arm64 / macos in separate namespaces. - - name: Cache Conan packages - uses: actions/cache@v4 - with: - path: ~/.conan2 - key: conan-${{ matrix.os }}-${{ hashFiles('conanfile.py') }} - restore-keys: | - conan-${{ matrix.os }}- - - name: Set up python/conan run: | python3 -m venv venv && . ./venv/bin/activate python3 -m pip install conan - conan profile detect --force - conan remote add viamconan https://viam.jfrog.io/artifactory/api/conan/viamconan --index 0 --force + conan profile detect + conan remote add viamconan https://viam.jfrog.io/artifactory/api/conan/viamconan --index 0 - name: Build package and module run: |