Skip to content

Commit

Permalink
Update workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpfs committed Feb 9, 2024
1 parent f7d7f20 commit 648bb2b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ jobs:
security_audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/audit-check@v1
- uses: actions/checkout@v4
- name: ⚡ Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: rustsec/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
16 changes: 6 additions & 10 deletions .github/workflows/library.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
components: clippy
- name: Install cargo make
run: cargo install cargo-make
- name: Check
run: cargo check
- name: Install webassembly target
run: rustup target add wasm32-unknown-unknown
- name: Check webassembly
run: cargo make check-wasm
run: cargo check --target wasm32-unknown-unknown
- name: Check cargo fmt
run: cargo make format-check
run: cargo fmt --all -- --check
- name: Check cargo clippy
run: cargo make clippy
run: cargo clippy
- name: Run tests
run: cargo make test
run: cargo test
1 change: 0 additions & 1 deletion rust-toolchain

This file was deleted.

2 changes: 2 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "stable"

0 comments on commit 648bb2b

Please sign in to comment.