forked from lthn/blockchain
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.
This commit is contained in:
parent
4ed552d332
commit
ef016f50fb
4 changed files with 30 additions and 4 deletions
8
.github/workflows/build-linux.yml
vendored
8
.github/workflows/build-linux.yml
vendored
|
|
@ -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' }}
|
||||
|
|
|
|||
9
.github/workflows/build-macos-arm64.yml
vendored
9
.github/workflows/build-macos-arm64.yml
vendored
|
|
@ -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' }}
|
||||
|
|
|
|||
9
.github/workflows/build-macos-intel.yml
vendored
9
.github/workflows/build-macos-intel.yml
vendored
|
|
@ -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' }}
|
||||
|
|
|
|||
8
.github/workflows/build-windows.yml
vendored
8
.github/workflows/build-windows.yml
vendored
|
|
@ -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' }}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue