Skip to content

Commit

Permalink
Merge branch 'main' into patch-5
Browse files Browse the repository at this point in the history
  • Loading branch information
flobsx authored Nov 27, 2024
2 parents 4f39555 + 199fb1c commit 179a1a6
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 542 deletions.
58 changes: 6 additions & 52 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,69 +16,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cargo fmt
run: cargo fmt --all -- --check
- run: cargo fmt --all -- --check

check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cargo check
run: cargo check
- uses: Swatinem/rust-cache@v2
- run: cargo check
- run: cargo run

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache cargo registry
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v1
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v1
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- uses: Swatinem/rust-cache@v2
- name: Add clippy
run: rustup component add clippy
- name: Run lint
run: cargo clippy

test:
name: Tests
strategy:
fail-fast: false
runs-on: ubuntu-latest
needs: check
steps:
- uses: actions/checkout@v2
- name: Cache cargo registry
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v1
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v1
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- name: Cache results
uses: actions/cache@v1
with:
path: results
key: ${{ runner.os }}-results-${{ hashFiles('**/results.yml') }}
- name: Run Tests
run: cargo run
- run: cargo clippy
Loading

0 comments on commit 179a1a6

Please sign in to comment.