Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup with cache will stuck #852

Closed
2 of 5 tasks
ThanatosDi opened this issue Jun 14, 2024 · 1 comment
Closed
2 of 5 tasks

setup with cache will stuck #852

ThanatosDi opened this issue Jun 14, 2024 · 1 comment
Assignees
Labels
bug Something isn't working self-hosted

Comments

@ThanatosDi
Copy link

ThanatosDi commented Jun 14, 2024

Describe the bug

I want to use cache for the setup-php operation, with the following extensions installed: mongodb, redis, sqlite3, gd, bcmath. When executing the setup-php operation, it gets stuck because it asks whether to overwrite the mongodb.ini file that already exists.

Version

  • I have checked releases, and the bug exists in the latest patch version of v1 or v2.
  • v2
  • v1

Runners

  • GitHub Hosted
  • Self Hosted

Operating systems

PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

PHP versions
8.2

To Reproduce

run action without cache will success and save cache at github, then run again the action will stuck

Expected behavior

success use cache and setup-php success.

Screenshots/Logs

image

Additional context

jobs:
  standard:
    runs-on: [ self-hosted, ci , '${{ github.repository }}' ]
    steps:
    - name: "Checkout"
      uses: actions/checkout@v4

    - name: "Setup PHP extension caching"
      id: extcache
      uses: shivammathur/cache-extensions@v1
      with:
        php-version: 8.2
        extensions: mongodb,redis,sqlite3,gd,bcmath
        key: php-extensions-${{ runner.os }}-foov4

    - name: "Cache extensions"
      uses: actions/cache@v4
      with:
        path: ${{ steps.extcache.outputs.dir }}
        key: ${{ steps.extcache.outputs.key }}-foov4
        restore-keys: ${{ steps.extcache.outputs.key }}-foov4

    - name: "Setup PHP"
      uses: shivammathur/setup-php@verbose
      with:
        php-version: 8.2
        extensions: mongodb,redis,sqlite3,gd,bcmath
        coverage: none

    - name: "Cache Composer dependencies"
      id: composer-dependencies
      uses: actions/cache@v4
      with:
        path: vendor
        key: composer-dependencies-${{ runner.os }}-foov4-${{ hashFiles('salary2020-3.43.1/composer.json') }}
        restore-keys: |
          composer-dependencies-${{ runner.os }}-foov4-${{ hashFiles('salary2020-3.43.1/composer.json') }}
          composer-dependencies-${{ runner.os }}-foov4-
          composer-dependencies-${{ runner.os }}-

Are you willing to submit a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working self-hosted
Projects
None yet
Development

No branches or pull requests

2 participants