Skip to content

Commit

Permalink
chore: run github actions parallelly (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashWhiteHat authored Oct 30, 2023
1 parent 02009c2 commit 2ecdfb9
Showing 1 changed file with 63 additions and 23 deletions.
86 changes: 63 additions & 23 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,67 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install
run: rustup default stable
- name: Install rustfmt Components
run: rustup component add rustfmt
- name: Install clippy
run: rustup component add clippy
- name: Install Wasm target
run: rustup target add wasm32-unknown-unknown
- name: Build
run: cargo build --verbose
- name: Wasm build
run: cargo build --target wasm32-unknown-unknown
- name: Build examples
run: cargo build --examples --verbose
- name: Build benches
run: cargo build --benches --verbose
- name: Run tests
run: cargo +stable test --release --verbose
- name: Check Rustfmt Code Style
run: cargo fmt --all -- --check
- name: Check clippy warnings
run: cargo clippy --all-targets -- -D warnings
- uses: actions/checkout@v2
- name: Build
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: build
args: --examples --benches --verbose

build-wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Wasm build
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
- uses: actions-rs/cargo@v1
with:
command: build
args: --target wasm32-unknown-unknown

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: test
args: --release --verbose

fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check Rustfmt Code Style
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check clippy warnings
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D warnings

0 comments on commit 2ecdfb9

Please sign in to comment.