Skip to content

Commit

Permalink
Merge pull request #44 from recmo/recmo/logs
Browse files Browse the repository at this point in the history
Update, add console
  • Loading branch information
recmo authored Feb 25, 2022
2 parents cbaeb60 + 6be8597 commit 40862d6
Show file tree
Hide file tree
Showing 11 changed files with 621 additions and 193 deletions.
4 changes: 4 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
[alias]
criterion = "bench --bench=criterion --features=bench,proptest"

[build]
# Enable tokio-console support
# rustflags = ["--cfg", "tokio_unstable"]
35 changes: 0 additions & 35 deletions .github/actions/setup-rust/action.yml

This file was deleted.

14 changes: 11 additions & 3 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,21 @@ on:
schedule:
- cron: '0 2 * * *' # run at 2 AM UTC

env:
RUST_VERSION: 1.59

jobs:
security-audit:
name: Dependency Security Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Audit Check
uses: actions-rs/audit-check@v1
- uses: actions/checkout@v1
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.RUST_VERSION }}
default: true
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
44 changes: 36 additions & 8 deletions .github/workflows/build-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push

env:
RUST_VERSION: 1.59
NIGHTLY_VERSION: nightly-2022-02-22
CARGO_TERM_COLOR: always
# Skip incremental build and debug info generation in CI
CARGO_INCREMENTAL: 0
Expand All @@ -25,10 +27,17 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Rust
uses: ./.github/actions/setup-rust
- name: Install rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.NIGHTLY_VERSION }}
override: true
components: rustfmt, clippy
- name: Cache build
uses: Swatinem/rust-cache@v1
with:
key: cache-v1
- name: Check formatting
uses: actions-rs/cargo@v1
with:
Expand All @@ -50,8 +59,16 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Rust
uses: ./.github/actions/setup-rust
- name: Install rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.NIGHTLY_VERSION }}
override: true
- name: Cache build
uses: Swatinem/rust-cache@v1
with:
key: cache-v1
- run: npm install ganache-cli@latest --global
# Cargo doc test is not included in `--all-targets`
# See <https://github.com/rust-lang/cargo/issues/6669>
Expand All @@ -77,11 +94,17 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Rust
uses: ./.github/actions/setup-rust
id: setup_rust
- name: Install rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.NIGHTLY_VERSION }}
override: true
components: llvm-tools-preview
- name: Cache build
uses: Swatinem/rust-cache@v1
with:
key: cache-v1
- name: Install cargo-binutils
run: cargo install cargo-binutils
- run: npm install ganache-cli@latest --global
Expand Down Expand Up @@ -127,6 +150,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.RUST_VERSION }}
default: true
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -138,7 +167,6 @@ jobs:
matrix:
platform: [amd64, arm64]
env:
RUST_VERSION: 1.58
FEATURES: mimalloc
steps:
- name: Checkout
Expand Down
Loading

0 comments on commit 40862d6

Please sign in to comment.