Skip to content

Commit

Permalink
cache CI & fix clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasFA committed Jun 19, 2023
1 parent 845cab3 commit 96088e5
Show file tree
Hide file tree
Showing 4 changed files with 453 additions and 6 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ jobs:

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

- name: Lint
run: |
cargo fmt --all -- --check
cargo clippy -- -D warnings
- name: Build
run: cargo build --verbose
- name: Run tests
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
# will have compiled files and executables
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

Expand Down
Loading

0 comments on commit 96088e5

Please sign in to comment.