1
0
Fork 0
forked from lthn/blockchain

ci: use Forgejo Conan registry instead of actions/cache

Pull pre-built dependencies from the Forgejo package registry
(conan_build remote) instead of caching the SDK locally. Removes
the 570MB actions/cache overhead since all packages are already
available as pre-compiled binaries on the registry.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Claude 2026-02-06 15:06:47 +00:00
parent f3df50cba5
commit 22c0c5a251
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -38,20 +38,11 @@ jobs:
apt-get install -y build-essential git python3 python3-pip autotools-dev pkg-config rpm apt-get install -y build-essential git python3 python3-pip autotools-dev pkg-config rpm
pip install cmake --break-system-packages pip install cmake --break-system-packages
- name: Restore SDK cache
id: cache
uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/build/sdk
${{ github.workspace }}/build/bin
key: ${{ runner.os }}-${{ runner.arch }}-sdk
- name: Build dependencies - name: Build dependencies
run: make build-deps CPU_CORES=${{ env.CPU_CORES }} run: make build-deps CPU_CORES=${{ env.CPU_CORES }} CONAN_URL=${{ env.FORGEJO_URL }}/api/packages/host-uk/conan CONAN_USER=claude CONAN_PASSWORD=${{ secrets.RELEASE_TOKEN }}
- name: Compile - name: Compile
run: make ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }} CPU_CORES=${{ env.CPU_CORES }} run: make ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }} CPU_CORES=${{ env.CPU_CORES }} CONAN_URL=${{ env.FORGEJO_URL }}/api/packages/host-uk/conan CONAN_USER=claude CONAN_PASSWORD=${{ secrets.RELEASE_TOKEN }}
- name: Compute release tag - name: Compute release tag
id: release id: release