|
|
|
@ -45,8 +45,7 @@ jobs:
|
|
|
|
|
key: ${{ matrix.build }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
|
|
|
|
|
restore-keys: |
|
|
|
|
|
${{ matrix.build }}-cargo-registry-
|
|
|
|
|
# HACK(@ohsayan): The next line skips caching until it is fixed
|
|
|
|
|
if: runner.os != 'macOS' && env.IS_MD_FILE == 'false'
|
|
|
|
|
if: env.IS_MD_FILE == 'false'
|
|
|
|
|
|
|
|
|
|
- name: Cache Cargo index
|
|
|
|
|
uses: actions/cache@v1
|
|
|
|
@ -55,8 +54,7 @@ jobs:
|
|
|
|
|
key: ${{ matrix.build }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
|
|
|
|
|
restore-keys: |
|
|
|
|
|
${{ matrix.build }}-cargo-index-
|
|
|
|
|
# HACK(@ohsayan): The next line skips caching until it is fixed
|
|
|
|
|
if: runner.os != 'macOS' && env.IS_MD_FILE == 'false'
|
|
|
|
|
if: env.IS_MD_FILE == 'false'
|
|
|
|
|
|
|
|
|
|
- name: Cache Cargo build
|
|
|
|
|
uses: actions/cache@v1
|
|
|
|
@ -65,8 +63,7 @@ jobs:
|
|
|
|
|
key: ${{ matrix.build }}-target-${{ hashFiles('**/Cargo.lock') }}
|
|
|
|
|
restore-keys: |
|
|
|
|
|
${{ matrix.build }}-target-
|
|
|
|
|
# HACK(@ohsayan): The next line skips caching until it is fixed
|
|
|
|
|
if: runner.os != 'macOS' && env.IS_MD_FILE == 'false'
|
|
|
|
|
if: env.IS_MD_FILE == 'false'
|
|
|
|
|
|
|
|
|
|
- name: Install Rust
|
|
|
|
|
run: |
|
|
|
|
|