Compare commits
4 Commits
b635d57415
...
a959006935
Author | SHA1 | Date |
---|---|---|
aniketfuryrocks | a959006935 | |
aniketfuryrocks | b609788883 | |
aniketfuryrocks | 00951a82bc | |
aniketfuryrocks | 08d82b9d40 |
|
@ -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
|
||||
|
||||
- name: Set up Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
|
||||
- name: Install Clippy
|
||||
run: rustup component add clippy --toolchain stable
|
||||
|
||||
- name: Build and test
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
cargo build --all-targets
|
||||
cargo test --all-targets
|
||||
sudo apt-get update -y
|
||||
sudo apt-get upgrade -y
|
||||
sudo apt-get install libssl-dev openssl -y
|
||||
|
||||
- name: Run Clippy
|
||||
- name: Install rustfmt
|
||||
run: |
|
||||
rustup component add rustfmt
|
||||
|
||||
- name: Early Build
|
||||
run: cargo build --workspace --tests
|
||||
|
||||
- name: Check Rust Code Format
|
||||
run: cargo fmt -- --check
|
||||
|
||||
- name: Run Rust Clippy
|
||||
run: cargo clippy --all-targets -- -D warnings
|
||||
|
|
Loading…
Reference in New Issue