@@ -28,19 +28,36 @@ jobs:
28
28
- name : Report Clippy version
29
29
run : cargo clippy -- --version
30
30
- name : Run Clippy Lints
31
- run : cargo clippy -- -D warnings
31
+ #
32
+ # Clippy's style nits are useful, but not worth keeping in CI. This
33
+ # override belongs in src/lib.rs, and it is there, but that doesn't
34
+ # reliably work due to rust-lang/rust-clippy#6610.
35
+ #
36
+ run : cargo clippy -- -D warnings -A clippy::style
32
37
33
38
build-and-test :
34
39
runs-on : ${{ matrix.os }}
35
40
strategy :
41
+ fail-fast : false
36
42
matrix :
37
- os : [ ubuntu-18.04, windows-2019, macos-10.15 ]
43
+ os : [ ubuntu-18.04, macos-10.15 ]
38
44
steps :
39
45
# actions/checkout@v2
40
46
- uses : actions/checkout@28c7f3d2b5162b5ddd3dfd9a45aa55eaf396478b
41
47
- name : Report cargo version
42
48
run : cargo --version
49
+ - name : Configure GitHub cache for CockroachDB binaries
50
+ id : cache-cockroachdb
51
+
52
+ uses : actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6
53
+ with :
54
+ key : ${{ runner.os }}-cockroach-binary-v1
55
+ path : " cockroach"
43
56
- name : Build
44
- run : cargo build --tests --verbose
57
+ run : cargo build --all-targets --verbose
58
+ - name : Download CockroachDB binary
59
+ if : steps.cache-cockroachdb.outputs.cache-hit != 'true'
60
+ run : bash ./tools/ci_download_cockroachdb
45
61
- name : Run tests
46
- run : cargo test --verbose
62
+ # We modify PATH to put "./cockroach" on the PATH for the test suite.
63
+ run : PATH="$PATH:." cargo test --verbose
0 commit comments