Skip to content

Commit

Permalink
Fix broken pip cache dir commands during Github Actions builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
bartfeenstra committed Dec 28, 2023
1 parent b023145 commit e3ce02c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pull-request-create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,15 @@ jobs:
- name: Linux
os: ubuntu-20.04
dist_name: betty-linux
python: '3.12'
- name: macOS
os: macos-11
dist_name: betty-macos
python: '3.12'
- name: Windows
os: windows-2019
dist_name: betty-windows
python: '3.12'
steps:
- name: Check out the source code
uses: actions/checkout@v4
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release-build-pyinstaller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ jobs:
- name: Linux
os: ubuntu-20.04
dist_name: betty-linux
python: '3.12'
- name: macOS
os: macos-11
dist_name: betty-macos
python: '3.12'
- name: Windows
os: windows-2019
dist_name: betty-windows
python: '3.12'
steps:
- name: Check out the source code
uses: actions/checkout@v4
Expand All @@ -32,9 +35,9 @@ jobs:
uses: actions/cache@v3
with:
path: ${{ env.pip_cache_dir }}
key: pip-${{ runner.os }}-${{ hashFiles('./setup.py') }}
key: pip-${{ runner.os }}-${{ matrix.python }}-${{ hashFiles('./setup.py') }}
restore-keys: |
pip-${{ runner.os }}-
pip-${{ runner.os }}-${{ matrix.python }}-
- name: Get the npm cache directory
run: echo "npm_cache_dir=$(npm config get cache)" >> $GITHUB_ENV
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/release-build-setuptools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
jobs:
setuptools:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: 'Python 3.12'
os: ubuntu-latest
python: '3.12'
steps:
- name: Check out the source code
uses: actions/checkout@v4
Expand All @@ -20,9 +26,9 @@ jobs:
uses: actions/cache@v3
with:
path: ${{ env.pip_cache_dir }}
key: pip-${{ runner.os }}-${{ hashFiles('./setup.py') }}
key: pip-${{ runner.os }}-${{ matrix.python }}-${{ hashFiles('./setup.py') }}
restore-keys: |
pip-${{ runner.os }}-
pip-${{ runner.os }}-${{ matrix.python }}-
- name: Get the npm cache directory
run: echo "npm_cache_dir=$(npm config get cache)" >> $GITHUB_ENV
Expand Down

0 comments on commit e3ce02c

Please sign in to comment.