Skip to content

Commit

Permalink
Matrix version
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-deluna committed Sep 18, 2023
1 parent 6d108dd commit d31cab6
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/static_cli.yml
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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

0 comments on commit d31cab6

Please sign in to comment.