File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 19
19
- name : Install stable Rust
20
20
run : rustup update stable && rustup default stable
21
21
22
+ - name : Set rustc version
23
+ run : echo "::set-env name=CURRENT_RUSTC_VERSION::$(rustc -V)"
24
+
25
+ # Caching
26
+ - name : Cache Cargo Registry
27
+ uses : actions/cache@v1
28
+ with :
29
+ path : ~/.cargo/registry
30
+ key : ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
31
+ - name : Cache Cargo Bin
32
+ uses : actions/cache@v1
33
+ with :
34
+ path : ~/.cargo/bin
35
+ key : ${{ runner.os }}-cargo-bin-${{ hashFiles('**/Cargo.lock') }}
36
+ - name : Cache Cargo Git
37
+ uses : actions/cache@v1
38
+ with :
39
+ path : ~/.cargo/git
40
+ key : ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
41
+ - name : Cache Cargo Build
42
+ uses : actions/cache@v1
43
+ with :
44
+ path : target
45
+ key : ${{ runner.os }}-cargo-build-target-${{ env.CURRENT_RUSTC_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
46
+ restore-key : |
47
+ ${{ runner.os }}-cargo-build-target-${{ env.CURRENT_RUSTC_VERSION }}-
48
+
22
49
- name : Install PostgreSQL
23
50
run : |
24
51
sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get install -y postgresql
You can’t perform that action at this time.
0 commit comments