1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- name: auto CI
- on:
- push:
- branches: [ master ]
- pull_request:
- branches: [ master ]
- schedule:
- - cron: "0 2 * * 1-5"
- jobs:
- build:
- strategy:
- matrix:
- os: [ubuntu-latest, macos-latest, windows-latest]
- include:
- - os: ubuntu-latest
- path: ~/.cache/pip
- - os: macos-latest
- path: ~/Library/Caches/pip
- - os: windows-latest
- path: ~\AppData\Local\pip\Cache
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
-
- - uses: actions/cache@v2
- if: startsWith(runner.os, 'Linux')
- with:
- path: ~/.local/share/renv
- key: ${{ runner.os }}-renv-${{ hashFiles('**/renv.lock') }}
- restore-keys: |
- ${{ runner.os }}-renv-
- - uses: actions/cache@v2
- if: startsWith(runner.os, 'macOS')
- with:
- path: ~/Library/Application Support/renv
- key: ${{ runner.os }}-renv-${{ hashFiles('**/renv.lock') }}
- restore-keys: |
- ${{ runner.os }}-renv-
- - uses: actions/cache@v2
- if: startsWith(runner.os, 'Windows')
- with:
- path: ~\AppData\Local\renv
- key: ${{ runner.os }}-renv-${{ hashFiles('**/renv.lock') }}
- restore-keys: |
- ${{ runner.os }}-renv-
|