Skip to content

staking: extend solution size to address issues on testnet #52

staking: extend solution size to address issues on testnet

staking: extend solution size to address issues on testnet #52

name: Compile chronicle
on:
pull_request:
paths-ignore:
- 'contracts/**'
- 'docker/**'
- 'docs/**'
- 'node/**'
- 'infra/**'
- 'js/**'
- 'scripts/**'
- 'tester/**'
- 'utils/**'
- '**/*.md'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-chronicle:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
profile:
- production
- testnet
steps:
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y musl-tools protobuf-compiler
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install rust toolchain
run : rustup show
- name: Setup and cache sccache
uses: visvirial/[email protected]
with:
cache-key: sccache-chronicle-${{ matrix.profile }}
- name: Cache cargo registry and index
uses: actions/cache@v4
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: cargo-cache-chronicle-${{ hashFiles('Cargo.lock') }}
restore-keys: cargo-cache-chronicle-
- name: Cache cargo build output
uses: actions/cache@v4
with:
path: target
key: cargo-build-chronicle-${{ matrix.profile }}-${{ hashFiles('Cargo.lock') }}
restore-keys: cargo-build-chronicle-${{ matrix.profile }}-
- name: Build chronicle
run: cargo build --package chronicle --profile ${{ matrix.profile }}
- name: Upload chronicle
uses: actions/upload-artifact@v4
with:
name: chronicle.${{ matrix.profile }}
if-no-files-found: error
path: target/${{ matrix.profile }}/chronicle