Skip to content

Commit

Permalink
chore: ignore Cargo.lock and bump toolchain (#46)
Browse files Browse the repository at this point in the history
Signed-off-by: MrCroxx <[email protected]>
  • Loading branch information
MrCroxx authored Jul 4, 2023
1 parent 37031fe commit f1a3bbf
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 1,865 deletions.
16 changes: 8 additions & 8 deletions .github/template/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ name:
on:

env:
RUST_TOOLCHAIN: nightly-2023-04-07
RUST_TOOLCHAIN: nightly-2023-05-31
CARGO_TERM_COLOR: always
CACHE_KEY_SUFFIX: 20230518
RUNKV_CI: true
CACHE_KEY_SUFFIX: 20230703

jobs:
misc-check:
Expand Down Expand Up @@ -47,7 +46,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ env.CACHE_KEY_SUFFIX }}
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}-${{ env.CACHE_KEY_SUFFIX }}
- name: Install cargo-sort
if: steps.cache.outputs.cache-hit != 'true'
run: |
Expand All @@ -60,8 +59,9 @@ jobs:
cargo fmt --all -- --check
- name: Run rust clippy check
run: |
# If new CI checks are added, the one with `--locked` must be run first.
cargo clippy --all-targets --locked -- -D warnings
cargo clippy --all-targets --features tokio-console -- -D warnings &&
cargo clippy --all-targets --features deadlock -- -D warnings &&
cargo clippy --all-targets -- -D warnings
- if: steps.cache.outputs.cache-hit != 'true'
uses: taiki-e/install-action@cargo-llvm-cov
- if: steps.cache.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.lock') }}-${{ env.CACHE_KEY_SUFFIX }}
key: ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.toml') }}-${{ env.CACHE_KEY_SUFFIX }}
- name: Run foyer-storage-bench with single worker thread and deadlock detection
env:
RUST_BACKTRACE: 1
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.lock') }}-${{ env.CACHE_KEY_SUFFIX }}
key: ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.toml') }}-${{ env.CACHE_KEY_SUFFIX }}
- name: Run foyer-storage-bench With Address Sanitizer
env:
RUST_BACKTRACE: 1
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ on:
branches: [main]
workflow_dispatch:
env:
RUST_TOOLCHAIN: nightly-2023-04-07
RUST_TOOLCHAIN: nightly-2023-05-31
CARGO_TERM_COLOR: always
CACHE_KEY_SUFFIX: 20230518
RUNKV_CI: true
CACHE_KEY_SUFFIX: 20230703
jobs:
misc-check:
name: misc check
Expand Down Expand Up @@ -54,7 +53,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ env.CACHE_KEY_SUFFIX }}
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}-${{ env.CACHE_KEY_SUFFIX }}
- name: Install cargo-sort
if: steps.cache.outputs.cache-hit != 'true'
run: |
Expand All @@ -67,8 +66,9 @@ jobs:
cargo fmt --all -- --check
- name: Run rust clippy check
run: |
# If new CI checks are added, the one with `--locked` must be run first.
cargo clippy --all-targets --locked -- -D warnings
cargo clippy --all-targets --features tokio-console -- -D warnings &&
cargo clippy --all-targets --features deadlock -- -D warnings &&
cargo clippy --all-targets -- -D warnings
- if: steps.cache.outputs.cache-hit != 'true'
uses: taiki-e/install-action@cargo-llvm-cov
- if: steps.cache.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.lock') }}-${{ env.CACHE_KEY_SUFFIX }}
key: ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.toml') }}-${{ env.CACHE_KEY_SUFFIX }}
- name: Run foyer-storage-bench with single worker thread and deadlock detection
env:
RUST_BACKTRACE: 1
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.lock') }}-${{ env.CACHE_KEY_SUFFIX }}
key: ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.toml') }}-${{ env.CACHE_KEY_SUFFIX }}
- name: Run foyer-storage-bench With Address Sanitizer
env:
RUST_BACKTRACE: 1
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ on:
pull_request:
branches: [main]
env:
RUST_TOOLCHAIN: nightly-2023-04-07
RUST_TOOLCHAIN: nightly-2023-05-31
CARGO_TERM_COLOR: always
CACHE_KEY_SUFFIX: 20230518
RUNKV_CI: true
CACHE_KEY_SUFFIX: 20230703
jobs:
misc-check:
name: misc check
Expand Down Expand Up @@ -53,7 +52,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ env.CACHE_KEY_SUFFIX }}
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}-${{ env.CACHE_KEY_SUFFIX }}
- name: Install cargo-sort
if: steps.cache.outputs.cache-hit != 'true'
run: |
Expand All @@ -66,8 +65,9 @@ jobs:
cargo fmt --all -- --check
- name: Run rust clippy check
run: |
# If new CI checks are added, the one with `--locked` must be run first.
cargo clippy --all-targets --locked -- -D warnings
cargo clippy --all-targets --features tokio-console -- -D warnings &&
cargo clippy --all-targets --features deadlock -- -D warnings &&
cargo clippy --all-targets -- -D warnings
- if: steps.cache.outputs.cache-hit != 'true'
uses: taiki-e/install-action@cargo-llvm-cov
- if: steps.cache.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.lock') }}-${{ env.CACHE_KEY_SUFFIX }}
key: ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.toml') }}-${{ env.CACHE_KEY_SUFFIX }}
- name: Run foyer-storage-bench with single worker thread and deadlock detection
env:
RUST_BACKTRACE: 1
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.lock') }}-${{ env.CACHE_KEY_SUFFIX }}
key: ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.toml') }}-${{ env.CACHE_KEY_SUFFIX }}
- name: Run foyer-storage-bench With Address Sanitizer
env:
RUST_BACKTRACE: 1
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/.vscode

/target

Cargo.lock
Loading

0 comments on commit f1a3bbf

Please sign in to comment.