Compare commits

...

4 Commits

Author SHA1 Message Date
aniketfuryrocks a959006935
component 2023-09-04 21:22:20 +05:30
aniketfuryrocks b609788883
a 2023-09-04 20:46:26 +05:30
aniketfuryrocks 00951a82bc
s 2023-09-04 20:13:25 +05:30
aniketfuryrocks 08d82b9d40
clippy fix 2023-09-04 20:11:28 +05:30
1 changed files with 21 additions and 17 deletions

View File

@ -9,26 +9,30 @@ on:
- main - main
jobs: jobs:
build: build_all:
name: Rust project - latest
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - uses: actions/checkout@v3
uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Set up Rust - name: Install Dependencies
uses: actions-rs/toolchain@v1 run: |
with: sudo apt-get update -y
toolchain: stable sudo apt-get upgrade -y
sudo apt-get install libssl-dev openssl -y
- name: Install Clippy - name: Install rustfmt
run: rustup component add clippy --toolchain stable run: |
rustup component add rustfmt
- name: Build and test - name: Early Build
run: | run: cargo build --workspace --tests
cargo build --all-targets
cargo test --all-targets
- name: Run Clippy - name: Check Rust Code Format
run: cargo clippy --all-targets -- -D warnings run: cargo fmt -- --check
- name: Run Rust Clippy
run: cargo clippy --all-targets -- -D warnings