Skip to content

Commit

Permalink
fix redundant action run
Browse files Browse the repository at this point in the history
  • Loading branch information
toasterparty committed May 16, 2024
1 parent 43b53f2 commit 6f93205
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Rust

on:
push:
branches:
- main
pull_request:

jobs:
Expand Down Expand Up @@ -35,23 +37,12 @@ jobs:
toolchain: stable
target: powerpc-unknown-linux-gnu
override: true

- name: Install cargo fmt and cargo clippy
run: rustup component add rustfmt clippy

- name: Check format
run: cargo fmt -- --check

- name: Run clippy
run: cargo clippy -- -D warnings

- name: Build
uses: actions-rs/cargo@v1

- uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features --verbose

- name: Test
uses: actions-rs/cargo@v1
- uses: actions-rs/cargo@v1
with:
command: test

0 comments on commit 6f93205

Please sign in to comment.