-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tree validation * update deps * remove version from ci * update ci * ci fix * fix for test server port * Revert "fix for test server port" This reverts commit bff3d93. * remove cargo sort * ci backtraces * second try * changed log for cache restore error * mmap cache panic handling and tests * remove chance of panic
- Loading branch information
1 parent
b318244
commit 39d8887
Showing
15 changed files
with
609 additions
and
543 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,17 +5,16 @@ on: | |
branches: | ||
- main | ||
pull_request: | ||
types: [opened,synchronize,reopened] | ||
types: [opened, synchronize, reopened] | ||
branches: | ||
- main | ||
|
||
env: | ||
RUST_VERSION: "1.74" | ||
NIGHTLY_VERSION: nightly-2024-01-23 | ||
CARGO_TERM_COLOR: always | ||
# Skip incremental build and debug info generation in CI | ||
CARGO_INCREMENTAL: 0 | ||
CARGO_PROFILE_DEV_DEBUG: 0 | ||
RUST_BACKTRACE: full | ||
|
||
jobs: | ||
lint: | ||
|
@@ -28,7 +27,7 @@ jobs: | |
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ env.NIGHTLY_VERSION }} | ||
toolchain: stable | ||
override: true | ||
components: rustfmt, clippy | ||
- name: Install protobuf-compiler | ||
|
@@ -38,24 +37,17 @@ jobs: | |
continue-on-error: false | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ env.RUST_VERSION }}-${{ env.NIGHTLY_VERSION }}-cargo-lint-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: ${{ env.RUST_VERSION }}-${{ env.NIGHTLY_VERSION }}-cargo-lint- | ||
- name: Install cargo-sort | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-sort | ||
version: latest | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Check formatting | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
- name: Check Cargo.toml formatting | ||
run: cargo sort --check --check-format | ||
- uses: actions-rs/clippy-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -76,21 +68,22 @@ jobs: | |
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ env.NIGHTLY_VERSION }} | ||
toolchain: stable | ||
override: true | ||
components: rustfmt, clippy | ||
- name: Install protobuf-compiler | ||
run: sudo apt-get install -y protobuf-compiler | ||
- name: Cache | ||
uses: actions/cache@v3 | ||
continue-on-error: false | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ env.RUST_VERSION }}-${{ env.NIGHTLY_VERSION }}-cargo-test-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: ${{ env.RUST_VERSION }}-${{ env.NIGHTLY_VERSION }}-cargo-test- | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
|
@@ -106,4 +99,4 @@ jobs: | |
uses: actions-rs/cargo@v1 | ||
with: | ||
command: nextest | ||
args: run --workspace | ||
args: run --workspace |
Oops, something went wrong.