Skip to content

Commit

Permalink
Cleanup github action
Browse files Browse the repository at this point in the history
  • Loading branch information
sighol committed Aug 26, 2024
1 parent 8bdbf6c commit 682a4e2
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/rust-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,16 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.os == 'windows-latest' && 'x86_64-pc-windows-msvc' || '' }}

- name: Cache cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
uses: actions/checkout@v4

- name: Build
run: cargo build --verbose

- name: Format
run: cargo fmt --all -- --check

- name: Clippy
run: cargo clippy

- name: Run tests
run: cargo test --verbose

0 comments on commit 682a4e2

Please sign in to comment.