-
Notifications
You must be signed in to change notification settings - Fork 18
49 lines (35 loc) · 1.14 KB
/
rust.yml
File metadata and controls
49 lines (35 loc) · 1.14 KB
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: ["master"]
pull_request:
branches: ["master"]
env:
CARGO_TERM_COLOR: always
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Install taplo
run: curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-linux-x86_64.gz | gzip -d - | install -m 755 /dev/stdin /usr/local/bin/taplo
- name: Check TOML formatting
run: taplo format --check
- name: Check Rust formatting
run: cargo fmt --all --check
- name: Check order of BOLT message type constants
run: scripts/check-bolt-msg-type-order.sh
- name: Run Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Build
run: cargo build --verbose
- name: Build with nyx feature
run: cargo build --verbose --features nyx
- name: Run tests
run: cargo test --verbose