mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Merge pull request #1729 from RustPython/coolreader18/cache-actions
Cache Cargo dependencies in Github Actions
This commit is contained in:
18
.github/workflows/ci.yaml
vendored
18
.github/workflows/ci.yaml
vendored
@@ -17,7 +17,14 @@ jobs:
|
||||
- uses: actions/checkout@master
|
||||
- name: Convert symlinks to hardlink (windows only)
|
||||
run: powershell.exe scripts/symlinks-to-hardlinks.ps1
|
||||
if: matrix.os == 'windows-latest'
|
||||
if: runner.os == 'Windows'
|
||||
- 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:
|
||||
@@ -35,7 +42,14 @@ jobs:
|
||||
- uses: actions/checkout@master
|
||||
- name: Convert symlinks to hardlink (windows only)
|
||||
run: powershell.exe scripts/symlinks-to-hardlinks.ps1
|
||||
if: matrix.os == 'windows-latest'
|
||||
if: runner.os == 'Windows'
|
||||
- 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:
|
||||
|
||||
Reference in New Issue
Block a user