1717 profile : minimal
1818 toolchain : nightly
1919 override : true
20+ - name : Rust Cache
21+ uses : Swatinem/rust-cache@v1.4.0
2022 - uses : actions-rs/cargo@v1
2123 with :
2224 command : check
4749 toolchain : nightly
4850 components : clippy
4951 override : true
52+ - name : Rust Cache
53+ uses : Swatinem/rust-cache@v1.4.0
5054 - uses : actions-rs/clippy-check@v1
5155 with :
5256 token : ${{ secrets.GITHUB_TOKEN }}
6468 profile : minimal
6569 toolchain : nightly
6670 override : true
67- - run : cargo generate-lockfile
68- - name : Cache dependencies
69- uses : actions/cache@v2
70- env :
71- cache-name : cache-dependencies
72- with :
73- path : |
74- ~/.cargo/.crates.toml
75- ~/.cargo/.crates2.json
76- ~/.cargo/registry/index
77- ~/.cargo/registry/cache
78- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('Cargo.lock') }}
71+ - name : Rust Cache
72+ uses : Swatinem/rust-cache@v1.4.0
7973 - name : unit test
8074 run : make unit-test
8175 integration-test :
@@ -90,21 +84,18 @@ jobs:
9084 profile : minimal
9185 toolchain : nightly
9286 override : true
93- - run : cargo generate-lockfile
94- - name : Cache dependencies
95- uses : actions/cache@v2
96- env :
97- cache-name : cache-dependencies
98- with :
99- path : |
100- ~/.cargo/.crates.toml
101- ~/.cargo/.crates2.json
102- ~/.cargo/registry/index
103- ~/.cargo/registry/cache
104- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('Cargo.lock') }}
87+ - name : Rust Cache
88+ uses : Swatinem/rust-cache@v1.4.0
10589 - name : install tiup
10690 run : curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
10791 - name : start tiup playground
108- run : /home/runner/.tiup/bin/tiup playground nightly --mode tikv-slim --kv 3 --without-monitor --kv.config /home/runner/work/client-rust/client-rust/config/tikv.toml --pd.config /home/runner/work/client-rust/client-rust/config/pd.toml &
92+ run : |
93+ ~/.tiup/bin/tiup install tikv:nightly pd:nightly
94+ ~/.tiup/bin/tiup playground nightly --mode tikv-slim --kv 3 --without-monitor --kv.config config/tikv.toml --pd.config config/pd.toml &
95+ while :; do
96+ echo "waiting cluster to be ready"
97+ [[ "$(curl -I http://127.0.0.1:2379/pd/api/v1/regions 2>/dev/null | head -n 1 | cut -d$' ' -f2)" -ne "405" ]] || break
98+ sleep 1
99+ done
109100 - name : integration test
110101 run : MULTI_REGION=1 make integration-test
0 commit comments