RPC-470 enabling details in estimate requests and cleaning up some old properties #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
outputs: | |
fee-estimator: ${{ steps.filter.outputs.fee-estimator}} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dorny/[email protected] | |
id: filter | |
with: | |
filters: | | |
fee-estimator: | |
- '*/**' | |
fee-estimator-tests: | |
needs: changes | |
if: ${{ needs.changes.outputs.fee-estimator == 'true' }} | |
runs-on: ubuntu-latest | |
env: | |
RUST_TOOLCHAIN: stable | |
CARGO_INCREMENTAL: 0 | |
SCCACHE_GHA_ENABLED: 'true' | |
RUSTC_WRAPPER: 'sccache' | |
ENV: 'test' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cleanup Apt | |
run: sudo find /var/lib/apt/lists/ -type 'f' -name 'archive*' -delete && sudo apt-get update | |
- uses: rui314/setup-mold@v1 | |
with: | |
mold-version: 1.1.1 | |
make-default: true | |
- name: Ensure we use Mold | |
run: sudo ln -s /usr/local/bin/ld.mold /usr/bin/ld.lld | |
- name: Install rust + caching | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
rustflags: '-C link-arg=-fuse-ld=lld' | |
components: rustfmt, clippy | |
- name: Set up sccache | |
uses: mozilla-actions/[email protected] | |
- name: Clear sccache stats | |
run: sccache --zero-stats | |
- name: Run Tests | |
run: | | |
cargo test -- --nocapture | |