chore: init

This commit is contained in:
Oliver Nordbjerg
2022-09-19 19:25:12 +02:00
commit 978527367f
6 changed files with 79 additions and 0 deletions

57
.github/ci.yml vendored Normal file
View File

@ -0,0 +1,57 @@
on:
push:
branches:
- master
pull_request:
env:
NEXTEST_EXPERIMENTAL_FILTER_EXPR: 1
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- uses: Swatinem/rust-cache@v1
with:
cache-on-failure: true
- name: cargo test
run: cargo test --locked --workspace --all-features
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
components: rustfmt, clippy
override: true
- uses: Swatinem/rust-cache@v1
with:
cache-on-failure: true
- name: cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all --check
- name: cargo clippy
uses: actions-rs/clippy-check@v1
with:
args: --all --all-features -- -D warnings
token: ${{ secrets.GITHUB_TOKEN }}

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

7
Cargo.lock generated Normal file
View File

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "reth"
version = "0.1.0"

10
Cargo.toml Normal file
View File

@ -0,0 +1,10 @@
[package]
name = "reth"
version = "0.1.0"
edition = "2021"
[dependencies]
[[bin]]
path = "bin/reth.rs"
name = "reth"

3
bin/reth.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

1
src/lib.rs Normal file
View File

@ -0,0 +1 @@