mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-03-26 20:23:45 +00:00
commit
3ba1b77cf2
61
.github/workflows/ci.yml
vendored
Normal file
61
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths-ignore:
|
||||||
|
- "**.md"
|
||||||
|
- "!.github/workflows/*.yml"
|
||||||
|
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- "**.md"
|
||||||
|
- "!.github/workflows/*.yml"
|
||||||
|
|
||||||
|
name: General
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform: [ ubuntu-latest, macos-latest ]
|
||||||
|
runs-on: ${{ matrix.platform }}
|
||||||
|
timeout-minutes: 60
|
||||||
|
|
||||||
|
name: build - ${{ matrix.platform }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Install stable toolchain
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: nightly
|
||||||
|
override: true
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
- run: cargo build
|
||||||
|
|
||||||
|
lint:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform: [ ubuntu-latest ]
|
||||||
|
runs-on: ${{ matrix.platform }}
|
||||||
|
timeout-minutes: 60
|
||||||
|
|
||||||
|
name: lint - ${{ matrix.crate }} - ${{ matrix.platform }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout sources
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Install stable toolchain
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: nightly
|
||||||
|
override: true
|
||||||
|
components: rustfmt, clippy
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
- name: cargo fmt
|
||||||
|
if: success() || failure()
|
||||||
|
run: cargo fmt -- --check
|
||||||
|
- name: cargo clippy
|
||||||
|
if: success() || failure()
|
||||||
|
run: |
|
||||||
|
cargo clippy --release -- -D warnings
|
||||||
@ -11,6 +11,7 @@ pub async fn main_runner() -> Result<()> {
|
|||||||
let _http_server_handle = http_server.handle();
|
let _http_server_handle = http_server.handle();
|
||||||
tokio::spawn(http_server);
|
tokio::spawn(http_server);
|
||||||
|
|
||||||
|
#[allow(clippy::empty_loop)]
|
||||||
loop {
|
loop {
|
||||||
//ToDo: Insert activity into main loop
|
//ToDo: Insert activity into main loop
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,6 +4,7 @@ use std::fmt;
|
|||||||
#[derive(serde::Serialize)]
|
#[derive(serde::Serialize)]
|
||||||
pub struct RpcParseError(pub String);
|
pub struct RpcParseError(pub String);
|
||||||
|
|
||||||
|
#[allow(clippy::too_long_first_doc_paragraph)]
|
||||||
/// This struct may be returned from JSON RPC server in case of error
|
/// This struct may be returned from JSON RPC server in case of error
|
||||||
/// It is expected that that this struct has impls From<_> all other RPC errors
|
/// It is expected that that this struct has impls From<_> all other RPC errors
|
||||||
/// like [`RpcBlockError`](crate::types::blocks::RpcBlockError)
|
/// like [`RpcBlockError`](crate::types::blocks::RpcBlockError)
|
||||||
|
|||||||
@ -11,6 +11,7 @@ pub async fn main_runner() -> Result<()> {
|
|||||||
let _http_server_handle = http_server.handle();
|
let _http_server_handle = http_server.handle();
|
||||||
tokio::spawn(http_server);
|
tokio::spawn(http_server);
|
||||||
|
|
||||||
|
#[allow(clippy::empty_loop)]
|
||||||
loop {
|
loop {
|
||||||
//ToDo: Insert activity into main loop
|
//ToDo: Insert activity into main loop
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user