Fix wrong cache key

This commit is contained in:
rugk 2021-10-02 00:43:54 +02:00 committed by GitHub
parent e2ae0da4e1
commit a372ee92e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,7 @@ jobs:
name: PHP ${{ matrix.php-versions }} unit tests on ${{ matrix.operating-system }} name: PHP ${{ matrix.php-versions }} unit tests on ${{ matrix.operating-system }}
env: env:
extensions: gd, sqlite3 extensions: gd, sqlite3
extensions-cache-key: ${{ runner.os }}-phpextensions
steps: steps:
@ -35,14 +36,14 @@ jobs:
with: with:
php-version: ${{ matrix.php-versions }} php-version: ${{ matrix.php-versions }}
extensions: ${{ env.extensions }} extensions: ${{ env.extensions }}
key: ${{ runner.os }}-phpextensions key: ${{ env.extensions-cache-key }}
- name: Cache extensions - name: Cache extensions
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: ${{ steps.extcache.outputs.dir }} path: ${{ steps.extcache.outputs.dir }}
key: ${{ steps.extcache.outputs.key }} key: ${{ steps.extcache.outputs.key }}
restore-keys: ${{ env.extensions }} restore-keys: ${{ env.extensions-cache-key }}
- name: Setup PHP - name: Setup PHP
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2