From ef016f50fbe0191b2a93e7e70cdbe5b345e334e1 Mon Sep 17 00:00:00 2001 From: Snider Date: Sun, 28 Sep 2025 17:49:17 +0100 Subject: [PATCH] Add SDK folder caching to build workflows Introduces actions/cache to cache the build/sdk folder in Linux, macOS (Intel and ARM64), and Windows GitHub Actions workflows. Disables Conan's internal package caching in favor of the new cache step to improve build performance and consistency. --- .github/workflows/build-linux.yml | 8 +++++++- .github/workflows/build-macos-arm64.yml | 9 ++++++++- .github/workflows/build-macos-intel.yml | 9 ++++++++- .github/workflows/build-windows.yml | 8 +++++++- 4 files changed, 30 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 6a5debf2..89094a1b 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -24,11 +24,17 @@ jobs: - name: install dependencies run: sudo apt-get install -y autotools-dev git build-essential + - name: Cache SDK Folder + uses: actions/cache@v4 + with: + path: ${{ github.workspace }}/build/sdk + key: ${{ runner.os }}-sdk + - name: Install Conan uses: conan-io/setup-conan@v1 with: home: ${{ github.workspace }}/build/sdk - cache_packages: true + cache_packages: false - name: Compile Release run: make release TESTNET=${{ inputs.chain-network == 'testnet' && '1' || '0' }} diff --git a/.github/workflows/build-macos-arm64.yml b/.github/workflows/build-macos-arm64.yml index 28cdb67a..c549e0f7 100644 --- a/.github/workflows/build-macos-arm64.yml +++ b/.github/workflows/build-macos-arm64.yml @@ -22,11 +22,18 @@ jobs: fetch-depth: 0 submodules: recursive + + - name: Cache SDK Folder + uses: actions/cache@v4 + with: + path: ${{ github.workspace }}/build/sdk + key: ${{ runner.os }}-sdk + - name: Install Conan uses: conan-io/setup-conan@v1 with: home: ${{ github.workspace }}/build/sdk - cache_packages: true + cache_packages: false # - name: Compile Release # run: make apple-clang-armv8 TESTNET=${{ inputs.chain-network == 'testnet' && '1' || '0' }} diff --git a/.github/workflows/build-macos-intel.yml b/.github/workflows/build-macos-intel.yml index 28ccd11a..c664a3ce 100644 --- a/.github/workflows/build-macos-intel.yml +++ b/.github/workflows/build-macos-intel.yml @@ -21,11 +21,18 @@ jobs: fetch-depth: 0 submodules: recursive + + - name: Cache SDK Folder + uses: actions/cache@v4 + with: + path: ${{ github.workspace }}/build/sdk + key: ${{ runner.os }}-sdk + - name: Install Conan uses: conan-io/setup-conan@v1 with: home: ${{ github.workspace }}/build/sdk - cache_packages: true + cache_packages: false - name: Compile Release run: make release TESTNET=${{ inputs.chain-network == 'testnet' && '1' || '0' }} diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index b9a86dc0..ba6db426 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -21,11 +21,17 @@ jobs: fetch-depth: 0 submodules: recursive + - name: Cache SDK Folder + uses: actions/cache@v4 + with: + path: ${{ github.workspace }}/build/sdk + key: ${{ runner.os }}-sdk + - name: Install Conan uses: conan-io/setup-conan@v1 with: home: ${{ github.workspace }}/build/sdk - cache_packages: true + cache_packages: false - name: Compile Release run: make release TESTNET=${{ inputs.chain-network == 'testnet' && '1' || '0' }}