Skip to content

Commit 5c9305e

Browse files
committed
CI: Cache rustup
1 parent 3af0d21 commit 5c9305e

File tree

2 files changed

+2
-103
lines changed

2 files changed

+2
-103
lines changed

.github/actions/setup-cache/action.yml

Lines changed: 2 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -12,103 +12,7 @@ runs:
1212
- name: Cache Rust toolchain
1313
uses: actions/cache@v3
1414
with:
15-
key: cargo
15+
key: rust-toolchain
1616
path: |
1717
~/.cargo
18-
- name: Cache sccache DB 0
19-
uses: actions/cache@v3
20-
with:
21-
key: ${{ inputs.key }}-sccache-db-0
22-
path: |
23-
~/.cache/sccache/0
24-
- name: Cache sccache DB 1
25-
uses: actions/cache@v3
26-
with:
27-
key: ${{ inputs.key }}-sccache-db-1
28-
path: |
29-
~/.cache/sccache/1
30-
- name: Cache sccache DB 2
31-
uses: actions/cache@v3
32-
with:
33-
key: ${{ inputs.key }}-sccache-db-2
34-
path: |
35-
~/.cache/sccache/2
36-
- name: Cache sccache DB 3
37-
uses: actions/cache@v3
38-
with:
39-
key: ${{ inputs.key }}-sccache-db-3
40-
path: |
41-
~/.cache/sccache/3
42-
- name: Cache sccache DB 4
43-
uses: actions/cache@v3
44-
with:
45-
key: ${{ inputs.key }}-sccache-db-4
46-
path: |
47-
~/.cache/sccache/4
48-
- name: Cache sccache DB 5
49-
uses: actions/cache@v3
50-
with:
51-
key: ${{ inputs.key }}-sccache-db-5
52-
path: |
53-
~/.cache/sccache/5
54-
- name: Cache sccache DB 6
55-
uses: actions/cache@v3
56-
with:
57-
key: ${{ inputs.key }}-sccache-db-6
58-
path: |
59-
~/.cache/sccache/6
60-
- name: Cache sccache DB 7
61-
uses: actions/cache@v3
62-
with:
63-
key: ${{ inputs.key }}-sccache-db-7
64-
path: |
65-
~/.cache/sccache/7
66-
- name: Cache sccache DB 8
67-
uses: actions/cache@v3
68-
with:
69-
key: ${{ inputs.key }}-sccache-db-8
70-
path: |
71-
~/.cache/sccache/8
72-
- name: Cache sccache DB 9
73-
uses: actions/cache@v3
74-
with:
75-
key: ${{ inputs.key }}-sccache-db-9
76-
path: |
77-
~/.cache/sccache/9
78-
- name: Cache sccache DB a
79-
uses: actions/cache@v3
80-
with:
81-
key: ${{ inputs.key }}-sccache-db-a
82-
path: |
83-
~/.cache/sccache/a
84-
- name: Cache sccache DB b
85-
uses: actions/cache@v3
86-
with:
87-
key: ${{ inputs.key }}-sccache-db-b
88-
path: |
89-
~/.cache/sccache/b
90-
- name: Cache sccache DB c
91-
uses: actions/cache@v3
92-
with:
93-
key: ${{ inputs.key }}-sccache-db-c
94-
path: |
95-
~/.cache/sccache/c
96-
- name: Cache sccache DB d
97-
uses: actions/cache@v3
98-
with:
99-
key: ${{ inputs.key }}-sccache-db-d
100-
path: |
101-
~/.cache/sccache/d
102-
- name: Cache sccache DB e
103-
uses: actions/cache@v3
104-
with:
105-
key: ${{ inputs.key }}-sccache-db-e
106-
path: |
107-
~/.cache/sccache/e
108-
- name: Cache sccache DB f
109-
uses: actions/cache@v3
110-
with:
111-
key: ${{ inputs.key }}-sccache-db-f
112-
path: |
113-
~/.cache/sccache/f
114-
18+
~/.rustup

.github/workflows/build.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,10 @@ jobs:
4848
name: Build prouter
4949
runs-on: ubuntu-20.04
5050
steps:
51-
- name: Run sccache-cache
52-
uses: mozilla-actions/[email protected]
5351
- uses: actions/checkout@v3
5452
with:
5553
submodules: 'true'
5654
- uses: ./.github/actions/build-prouter
57-
env:
58-
SCCACHE_GHA_ENABLED: "true"
59-
RUSTC_WRAPPER: "sccache"
6055
build-contracts:
6156
name: Build contracts
6257
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)