diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a512db4..b05b6eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,6 +34,16 @@ jobs: components: clippy, rustfmt - run: sudo apt install -y protobuf-compiler + - name: Cache Crates + uses: actions/cache@v3 + with: + path: | + ./target + ~/.cargo + key: debug-${{ runner.os }}-${{ hashFiles('rust-toolchain.toml') }}-${{ hashFiles('Cargo.lock') }} + restore-keys: | + debug-${{ runner.os }}-${{ hashFiles('rust-toolchain.toml') }}- + debug-${{ runner.os }}- - name: Run Style Check run: | make ci diff --git a/README.md b/README.md index 61914a4..400b302 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ # Serialization-benchmark-rs + +[![CI](https://github.com/CeresDB/serialization-benchmark-rs/actions/workflows/ci.yml/badge.svg)](https://github.com/CeresDB/serialization-benchmark-rs/actions/workflows/ci.yml) + Benchmark for serialization in Rust, https://github.com/apache/incubator-horaedb/issues/1515. # Usage diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..31578d3 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "stable" \ No newline at end of file