Skip to content

Commit

Permalink
Fix actions cache
Browse files Browse the repository at this point in the history
  • Loading branch information
BSFishy committed Feb 20, 2020
1 parent e699734 commit a2e4ad0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,32 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: '3.8'
- uses: actions/cache@v1
- name: Setup Linux cache
uses: actions/cache@v1
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip
- uses: actions/cache@v1
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Setup macOS cache
uses: actions/cache@v1
if: startsWith(runner.os, 'macOS')
with:
path: ~/Library/Caches/pip
key: ${{ runner.os }}-pip
- uses: actions/cache@v1
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Setup Windows cache
uses: actions/cache@v1
if: startsWith(runner.os, 'Windows')
with:
path: ~\AppData\Local\pip\Cache
key: ${{ runner.os }}-pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Setup environment
run: python -m pip install --disable-pip-version-check meson==0.53.0 gcovr==4.2 ninja==1.9.0.post1
run: python -m pip install --disable-pip-version-check -r requirements.txt
- name: Setup
run: meson build
- name: Build
Expand Down
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This is the pip requirements file used for when we build for CI

meson==0.53.0
gcovr==4.2
ninja==1.9.0.post1

0 comments on commit a2e4ad0

Please sign in to comment.