Skip to content

Commit

Permalink
Merge pull request #96 from kyoto7250/fix_github_action
Browse files Browse the repository at this point in the history
show version and wait format and lint
  • Loading branch information
kyoto7250 authored Jul 15, 2024
2 parents a2a93c2 + 8fcecc4 commit 91c631d
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Cargo fmt
run: cargo fmt --all -- --check
run: |
cargo fmt --version
cargo fmt --all -- --check
lint:
name: Lint
Expand All @@ -34,28 +36,31 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Cache cargo registry
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- name: Add clippy
run: rustup component add clippy
- name: Run lint
run: cargo clippy
run: |
cargo clippy --version
cargo clippy
unit_tests:
name: Unit Tests
runs-on: ${{ matrix.os }}
needs: [format, lint]
timeout-minutes: 20
env:
# For some builds, we use cross to test on 32-bit and big-endian
Expand Down

0 comments on commit 91c631d

Please sign in to comment.