File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 1616 with :
1717 fetch-depth : 2
1818
19+ - name : Install stable Rust
20+ run : rustup update stable && rustup default stable
21+
22+ - name : Set rustc version
23+ run : echo "::set-env name=CURRENT_RUSTC_VERSION::$(rustc -V)"
24+
1925 # Caching
2026 - name : Cache Cargo Registry
2127 uses : actions/cache@v1
3642 uses : actions/cache@v1
3743 with :
3844 path : target
39- key : ${{ runner.os }}-cargo-build-target-${{ steps.rustc.outputs.version }}-${{ hashFiles('**/Cargo.lock') }}
45+ key : ${{ runner.os }}-cargo-build-target-${{ CURRENT_RUSTC_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
4046 restore-key : |
41- ${{ runner.os }}-cargo-build-target-${{ steps.rustc.outputs.version }}-
42-
43- - name : Install stable Rust
44- run : rustup update stable && rustup default stable
47+ ${{ runner.os }}-cargo-build-target-${{ CURRENT_RUSTC_VERSION }}-
4548
4649 - name : Install PostgreSQL
4750 run : |
You can’t perform that action at this time.
0 commit comments