Skip to content

Commit 3cd407f

Browse files
authored
Merge pull request #1670 from rust-lang/ci-cache
CI: add cache to more workflows
2 parents efd87f0 + f77b5b8 commit 3cd407f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ jobs:
136136
- name: Install servo dependencies
137137
run: sudo apt-get install -y llvm-dev clang libx11-dev python2.7 autoconf2.13 libjemalloc-dev
138138

139+
- uses: Swatinem/rust-cache@v2
140+
139141
- name: Build collector
140142
run: cargo build -p collector
141143

@@ -168,6 +170,8 @@ jobs:
168170
sudo apt-get install -y linux-tools-common linux-tools-generic linux-tools-`uname -r`
169171
echo -1 | sudo tee /proc/sys/kernel/perf_event_paranoid
170172
173+
- uses: Swatinem/rust-cache@v2
174+
171175
- name: Build collector
172176
run: cargo build -p collector
173177

@@ -205,6 +209,8 @@ jobs:
205209
make install
206210
echo "${PWD}/build/bin" >> $GITHUB_PATH
207211
212+
- uses: Swatinem/rust-cache@v2
213+
208214
- name: Install profilers
209215
run: cargo install --version 0.4.12 cargo-llvm-lines
210216

@@ -255,6 +261,8 @@ jobs:
255261
with:
256262
toolchain: stable
257263

264+
- uses: Swatinem/rust-cache@v2
265+
258266
- name: Build site
259267
run: cargo build --bin site
260268

0 commit comments

Comments
 (0)