forked from tikv/pprof-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use globally shared pipe to validate memory (tikv#198)
Signed-off-by: YangKeao <[email protected]>
- Loading branch information
Showing
2 changed files
with
63 additions
and
40 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 |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
uses: actions-rs/[email protected] | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
toolchain: 1.56.1 | ||
override: true | ||
components: rustfmt, clippy | ||
|
||
|
@@ -35,21 +35,29 @@ jobs: | |
- name: Remove pre-generated prost files to force regeneration | ||
run: rm proto/*.rs | ||
|
||
- name: Specify dependency version for old Rust | ||
run: | | ||
cp Cargo.toml Cargo.toml.bak | ||
sed -i "s|inferno = { version = \"0.11\"|inferno = { version = \"=0.11.1\"|g" ./Cargo.toml | ||
sed -i "s|criterion = \"0.4\"|criterion = \"=0.3.0\"\ncsv = \"=1.1.0\"|g" Cargo.toml | ||
- name: Run cargo clippy prost | ||
uses: actions-rs/[email protected] | ||
with: | ||
command: clippy | ||
args: --all-targets --features flamegraph,prost-codec -- -D warnings | ||
|
||
- name: Check if the prost file committed to git is up-to-date | ||
run: git diff --no-ext-diff --exit-code | ||
|
||
- name: Run cargo clippy protobuf | ||
uses: actions-rs/[email protected] | ||
with: | ||
command: clippy | ||
args: --all-targets --features flamegraph,protobuf-codec -- -D warnings | ||
|
||
- name: Check if the prost file committed to git is up-to-date | ||
run: | | ||
mv Cargo.toml.bak Cargo.toml | ||
git diff --no-ext-diff --exit-code | ||
build: | ||
name: Build | ||
strategy: | ||
|
@@ -74,6 +82,7 @@ jobs: | |
target: aarch64-unknown-linux-gnu | ||
- os: macos-latest | ||
target: x86_64-unknown-linux-musl | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
|
@@ -88,6 +97,13 @@ jobs: | |
target: ${{ matrix.target }} | ||
override: true | ||
|
||
- name: Specify dependency version for old Rust | ||
if: ${{ matrix.toolchain == '1.56.1' }} | ||
run: | | ||
# sed -i is not compatible with Mac OS | ||
mv Cargo.toml Cargo.toml.bak | ||
sed "s|inferno = { version = \"0.11\"|inferno = { version = \"=0.11.1\"|g" Cargo.toml.bak > ./Cargo.toml | ||
- name: Run cargo build prost | ||
uses: actions-rs/[email protected] | ||
with: | ||
|
@@ -125,6 +141,7 @@ jobs: | |
target: x86_64-unknown-linux-gnu | ||
- os: macos-latest | ||
target: x86_64-unknown-linux-musl | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
|
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