forked from brummer-simon/reachable
-
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (44 loc) · 1.56 KB
/
rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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