Restore caching on macOS runners

Signed-off-by: Sayan Nandan <nandansayan@outlook.com>
next
Sayan Nandan 4 years ago
parent 507215379f
commit a9f3d082b9
No known key found for this signature in database
GPG Key ID: C31EFD7DDA12AEE0

@ -39,8 +39,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.BUILD == 'true'
if: env.BUILD == 'true'
- name: Cache Cargo index
uses: actions/cache@v1
@ -49,8 +48,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.BUILD == 'true'
if: env.BUILD == 'true'
- name: Cache Cargo build
uses: actions/cache@v1
@ -59,8 +57,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.BUILD == 'true'
if: env.BUILD == 'true'
- name: Install Rust
run: |

@ -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: |

Loading…
Cancel
Save