Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Cache Cargo dependencies in Github Actions
  • Loading branch information
coolreader18 authored Jan 31, 2020
commit f420e6cc0b63b755bc0c4daf0866ef4b09c3d40b
14 changes: 14 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ jobs:
- name: Convert symlinks to hardlink (windows only)
run: powershell.exe scripts/symlinks-to-hardlinks.ps1
if: matrix.os == 'windows-latest'
- name: Cache cargo dependencies
uses: actions/cache@v1
with:
key: ${{ runner.os }}-rust_tests-${{ hashFiles('Cargo.lock') }}
path: target
restore-keys: |
${{ runner.os }}-rust_tests-
- name: run rust tests
uses: actions-rs/cargo@v1
with:
Expand All @@ -36,6 +43,13 @@ jobs:
- name: Convert symlinks to hardlink (windows only)
run: powershell.exe scripts/symlinks-to-hardlinks.ps1
if: matrix.os == 'windows-latest'
- name: Cache cargo dependencies
uses: actions/cache@v1
with:
key: ${{ runner.os }}-snippets-${{ hashFiles('Cargo.lock') }}
path: target
restore-keys: |
${{ runner.os }}-snippets-
- name: build rustpython
uses: actions-rs/cargo@v1
with:
Expand Down