diff --git a/.github/workflows/static_cli.yml b/.github/workflows/static_cli.yml index aa23fbab..556e50dd 100644 --- a/.github/workflows/static_cli.yml +++ b/.github/workflows/static_cli.yml @@ -1,25 +1,18 @@ name: Static CLI build on: - workflow_dispatch: - inputs: - version: - required: true - description: php version to compile - default: '8.2' - type: choice - options: - - '8.2' - push: branches: [ '*' ] pull_request: branches: [ '*' ] - + jobs: build: - name: build ${{ inputs.version }} on macOS x86_64 + name: build ${{ matrix.php-versions }} on macOS x86_64 runs-on: macos-latest + strategy: + matrix: + php-versions: ['8.2'] steps: - uses: actions/checkout@v3 @@ -51,10 +44,10 @@ jobs: uses: actions/cache@v3 with: path: downloads - key: php-${{ inputs.version }}-dependencies + key: php-${{ matrix.php-versions }}-dependencies - if: steps.cache-download.outputs.cache-hit != 'true' - run: cd /tmp/static-php-cli && ./bin/spc download --with-php=${{ inputs.version }} --all + run: cd /tmp/static-php-cli && ./bin/spc download --with-php=${{ matrix.php-versions }} --all # Run build command - run: cd /tmp/static-php-cli && ./bin/spc build "curl,glfw,mbstring,opcache,zip" --build-cli