Skip to content

thub/workflows/ci.yml #235

thub/workflows/ci.yml

thub/workflows/ci.yml #235

Workflow file for this run

name: Rust
on:
push:
branches: [ "**" ]
pull_request:
branches: [ "ma**" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: brew setup
run: |
sudo apt-get install build-essential make
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/runner/.bashrc
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew install gcc
brew tap randymcmillan/homebrew-randymcmillan
- name: cargo install cargo-binstall mempool_space
run: |
cargo install --force cargo-binstall
cargo install --force mempool_space
- name: rustup component add clippy
run: |
rustup update
rustup component add clippy
- name: cargo install --git sequence
run: |
cargo install --force --git https://github.com/RandyMcMillan/mempool_space.git mempool_space
cargo install --force --git https://github.com/RandyMcMillan/mempool_space.git lightning-search_dashboard
cargo install --force --git https://github.com/RandyMcMillan/mempool_space.git mempool-space_dashboard
- name: cargo build/install/test commit
run: |
cargo build --release --verbose
cargo install --path . --verbose --force
cargo test -- --nocapture
- name: make sequence
run: |
make || true
make cargo-clippy || true
make cargo-test-ignored || true