diff --git a/.github/workflows/telemetry-validation.yml b/.github/workflows/telemetry-validation.yml index 01d451fa36..ccee28b5d2 100644 --- a/.github/workflows/telemetry-validation.yml +++ b/.github/workflows/telemetry-validation.yml @@ -59,8 +59,11 @@ concurrency: env: BUILD_DIR: build - -jobs: +env: + BUILD_DIR: build + CCACHE_REMOTE_ONLY: true + CCACHE_REMOTE_STORAGE: "http://cache.dev.ripplex.io:8080|layout=bazel" + CCACHE_NAMESPACE: telemetry-validation validate-telemetry: name: Telemetry Stack Validation runs-on: ubuntu-latest @@ -75,7 +78,7 @@ jobs: sudo apt-get update sudo apt-get install -y curl jq bc python3 python3-pip ninja-build - - name: Install Python dependencies + sudo apt-get install -y curl jq bc python3 python3-pip ninja-build ccache run: pip3 install -r docker/telemetry/workload/requirements.txt - name: Install Conan @@ -86,9 +89,13 @@ jobs: - name: Set up Conan uses: ./.github/actions/setup-conan + uses: ./.github/actions/setup-conan + + - name: Log into Conan remote + if: ${{ github.repository == 'XRPLF/rippled' }} + run: conan remote login xrplf "${{ secrets.CONAN_REMOTE_USERNAME }}" --password "${{ secrets.CONAN_REMOTE_PASSWORD }}" + - name: Cache Conan packages - uses: actions/cache@v4 - with: path: ~/.conan2/p key: telemetry-conan-${{ runner.os }}-${{ hashFiles('conanfile.py') }} restore-keys: | @@ -104,6 +111,7 @@ jobs: build_nproc: 4 build_type: Release + - name: Configure CMake - name: Configure CMake working-directory: ${{ env.BUILD_DIR }} run: | @@ -111,8 +119,9 @@ jobs: -G Ninja \ -DCMAKE_TOOLCHAIN_FILE:FILEPATH=build/generators/conan_toolchain.cmake \ -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_COMPILER_LAUNCHER=ccache \ + -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ .. - - name: Build xrpld working-directory: ${{ env.BUILD_DIR }} run: |