@@ -32,14 +32,15 @@ jobs:
3232 steps :
3333 - uses : actions/checkout@v1
3434 - name : Cache target
35- uses : actions/cache@v1
35+ uses : actions/cache@v2
3636 env :
37- cache-name : cache-target
37+ cache-name : cache-default- target-and-lockfile
3838 with :
39- path : target
40- key : ${{ runner.os }}-${{ env.cache-name }}
41- restore-keys : |
42- ${{ runner.os }}-
39+ path : |
40+ target
41+ Cargo.lock
42+ ~/.rustup
43+ key : ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/Cargo.toml') }}
4344 - name : linux coredump setup
4445 if : ${{ runner.os == 'linux' }}
4546 run : |
@@ -53,23 +54,25 @@ jobs:
5354 - uses : actions/upload-artifact@v2
5455 if : ${{ failure() && runner.os == 'linux' }}
5556 with :
56- name : core-dump-upload
57+ name : linux- core-dumps
5758 path : |
5859 ./core-dumps/*
60+ ./target/release/deps/test_*
5961 examples :
6062 name : Example Tests
6163 runs-on : ubuntu-latest
6264 steps :
6365 - uses : actions/checkout@v1
6466 - name : Cache target
65- uses : actions/cache@v1
67+ uses : actions/cache@v2
6668 env :
67- cache-name : cache-target
69+ cache-name : cache-examples- target-and-lockfile
6870 with :
69- path : target
70- key : ${{ runner.os }}-${{ env.cache-name }}
71- restore-keys : |
72- ${{ runner.os }}-
71+ path : |
72+ target
73+ Cargo.lock
74+ ~/.rustup
75+ key : ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/Cargo.toml') }}
7376 - name : example tests
7477 run : |
7578 rustup update --no-self-update
@@ -88,27 +91,27 @@ jobs:
8891 burn-in :
8992 name : Burn In
9093 env :
91- RUSTFLAGS : " -C target-cpu=native -C link-args=-Wl,-zstack-size=4194304"
9294 RUST_BACKTRACE : 1
9395 runs-on : ubuntu-latest
9496 steps :
9597 - uses : actions/checkout@v1
9698 - name : Cache target
97- uses : actions/cache@v1
99+ uses : actions/cache@v2
98100 env :
99- cache-name : cache-target
101+ cache-name : cache-stress2- target-and-lockfile
100102 with :
101- path : target
102- key : ${{ runner.os }}-${{ env.cache-name }}
103- restore-keys : |
104- ${{ runner.os }}-
103+ path : |
104+ benchmarks/stress2/target
105+ benchmarks/stress2/Cargo.lock
106+ key : ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/Cargo.toml') }}
105107 - name : burn in
106108 run : |
107109 set -eo pipefail
108110 pushd benchmarks/stress2
109111 ulimit -c unlimited
110112 echo "$PWD/core-dumps/corefile-%e-%p-%t" | sudo tee /proc/sys/kernel/core_pattern
111113 mkdir core-dumps
114+ rm -rf default.sled || true
112115 cargo run --release -- --duration=60
113116 rm -rf default.sled
114117 - name : print backtraces with gdb
@@ -127,7 +130,7 @@ jobs:
127130 - uses : actions/upload-artifact@v2
128131 if : ${{ failure() }}
129132 with :
130- name : core-dump-upload
133+ name : linux- core-dumps
131134 path : |
132135 ./benchmarks/stress2/core-dumps/*
133136 ./benchmarks/stress2/target/release/stress2
@@ -139,14 +142,15 @@ jobs:
139142 steps :
140143 - uses : actions/checkout@v1
141144 - name : Cache rustup
142- uses : actions/cache@v1
145+ uses : actions/cache@v2
143146 env :
144- cache-name : cache-target
147+ cache-name : cache-sanitizers- target-and-lockfile
145148 with :
146- path : ~/.rustup
147- key : ${{ runner.os }}-${{ env.cache-name }}
148- restore-keys : |
149- ${{ runner.os }}-
149+ path : |
150+ ~/.rustup
151+ benchmarks/stress2/target
152+ benchmarks/stress2/Cargo.lock
153+ key : ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/Cargo.toml') }}
150154 - name : sanitizers
151155 run : |
152156 set -eo pipefail
0 commit comments