2023-10-26 00:39:57 +00:00
|
|
|
# This [clippys, tests, builds] on [windows, macos, linux]
|
|
|
|
|
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
# Show full panics.
|
|
|
|
RUST_BACKTRACE: "full"
|
|
|
|
# Increase thread stack size to 8 megabytes.
|
|
|
|
RUST_MIN_STACK: 8000000
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-10-29 01:11:55 +00:00
|
|
|
os: [ubuntu-latest]
|
2023-10-26 00:39:57 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
|
|
|
- name: Cache
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: target
|
|
|
|
key: ${{ matrix.os }}
|
|
|
|
|
2023-11-30 18:09:05 +00:00
|
|
|
- name: Spawn monerod
|
|
|
|
uses: ./.github/actions/monerod-regtest
|
|
|
|
|
2023-10-29 01:11:55 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: sudo apt install -y libboost-dev
|
|
|
|
|
2023-10-26 00:39:57 +00:00
|
|
|
- name: Clippy
|
2023-12-03 00:29:12 +00:00
|
|
|
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
|
|
|
|
|
|
|
|
- name: Fmt
|
|
|
|
run: cargo fmt --all --check
|
2023-10-26 00:39:57 +00:00
|
|
|
|
|
|
|
- name: Test
|
|
|
|
run: cargo test
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: cargo build
|