Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .github/workflows/build-php-cli-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ jobs:

steps:
- name: Checkout Studio
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7

- name: Checkout static-php-cli
if: runner.os == 'macOS' || runner.os == 'Linux'
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
repository: crazywhalecc/static-php-cli
ref: ${{ env.SPC_REF }}
Expand Down Expand Up @@ -193,8 +193,7 @@ jobs:
)
build_args=(
"$static_extensions"
# Give gd JPEG/WebP image support and FreeType (TrueType text).
--with-libs=freetype,libjpeg,libwebp
--with-suggested-libs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I followed the trail correctly, it looks like this change fails in the Linux GHA environments.

Image

Given the PR is approved, I'm going to request changes just to avoid it's accidentally merged.

--build-shared=xdebug
--build-cli
)
Expand Down Expand Up @@ -572,14 +571,14 @@ jobs:
(Get-FileHash $archive -Algorithm SHA256).Hash.ToLower() | Set-Content -NoNewline "$archive.sha256"

- name: Upload PHP CLI artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: php-${{ env.PHP_VERSION }}-cli-${{ matrix.target }}
path: out/php-binaries/*

- name: Upload static-php-cli logs
if: ${{ failure() && (runner.os == 'macOS' || runner.os == 'Linux') }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: spc-logs-${{ matrix.target }}
path: .cache/static-php-cli/log/*.log
Expand All @@ -601,15 +600,15 @@ jobs:
WPCOM_API_TOKEN: ${{ secrets.WPCOM_API_TOKEN }}
steps:
- name: Checkout Studio
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7

- name: Setup Ruby
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
with:
bundler-cache: true

- name: Setup Node
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
node-version-file: '.nvmrc'
cache: 'npm'
Expand All @@ -621,7 +620,7 @@ jobs:
run: npm ci --ignore-scripts

- name: Download PHP CLI artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
pattern: php-${{ env.PHP_VERSION }}-cli-*
path: out/php-binaries
Expand Down
Loading