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