-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19381b3
commit a413bd1
Showing
1 changed file
with
5 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|