Skip to content

Commit

Permalink
CI Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Ancient123 committed May 9, 2023
1 parent 19381b3 commit a413bd1
Showing 1 changed file with 5 additions and 25 deletions.
30 changes: 5 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cancel Outdated Builds
uses: styfle/[email protected]
with:
all_but_latest: true
access_token: ${{ github.token }}

- name: Checkout Repository
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: default
toolchain: stable
override: true
default: true
components: rustfmt, clippy

- name: Enable Rust Caching
uses: Swatinem/rust-cache@v2

Expand All @@ -44,20 +29,15 @@ jobs:
rm -rv wasm.tar.gz wasm-pack-*
- name: Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ github.token }}
run: |
cargo clippy -- -D warnings
- name: Clippy without default features
uses: actions-rs/clippy-check@v1
with:
token: ${{ github.token }}
args: --no-default-features
run: |
cargo clippy --no-default-features -- -D warnings
- name: Audit
uses: actions-rs/audit-check@v1
with:
token: ${{ github.token }}
run: cargo audit

- name: Cargo Build
run: cargo build
Expand Down

0 comments on commit a413bd1

Please sign in to comment.