Compare commits
4 Commits
b635d57415
...
a959006935
Author | SHA1 | Date |
---|---|---|
aniketfuryrocks | a959006935 | |
aniketfuryrocks | b609788883 | |
aniketfuryrocks | 00951a82bc | |
aniketfuryrocks | 08d82b9d40 |
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue