Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
0a136e7
Create single workflow for all PHP versions
yoramdelangen Jul 25, 2025
491ecaf
Update aft-build-all.yaml
yoramdelangen Jul 25, 2025
4a15483
Remove vendor-mode
yoramdelangen Jul 25, 2025
79e3bb4
make php executable
yoramdelangen Jul 25, 2025
412f305
Merge branch 'crazywhalecc:main' into aft-main
yoramdelangen Sep 5, 2025
a973d88
Improved workflow
yoramdelangen Sep 5, 2025
6de5e5d
Update aft-build-all.yaml
yoramdelangen Sep 5, 2025
933b8b0
make windows workflow callable from another workflow
yoramdelangen Sep 5, 2025
036ad14
change call to windows workflow
yoramdelangen Sep 5, 2025
598ec8b
Update windows workflow to reflect right input version
yoramdelangen Sep 5, 2025
ddbb7c5
remove os parameter for input
yoramdelangen Sep 5, 2025
5ed63ab
change env
yoramdelangen Sep 5, 2025
1fcf5b7
fix typo
yoramdelangen Sep 8, 2025
2d04ab1
slightly adjusting typo
yoramdelangen Sep 8, 2025
ed7e3b8
hardcode
yoramdelangen Sep 8, 2025
6addb8f
test relative path
yoramdelangen Sep 8, 2025
b6f1169
revert test
yoramdelangen Sep 8, 2025
b9f7d74
disable windows
yoramdelangen Sep 8, 2025
09bd153
Added debug and support runner.debug
yoramdelangen Sep 8, 2025
2415f35
Change runner.debug
yoramdelangen Sep 8, 2025
07d507b
Merge branch 'crazywhalecc:main' into aft-main
yoramdelangen Sep 8, 2025
b835a58
fix the broken
yoramdelangen Sep 8, 2025
e0ce8a8
Update aft-build-all.yaml
yoramdelangen Sep 8, 2025
bd911c9
try build micro
yoramdelangen Sep 9, 2025
ee1d9a3
Merge branch 'crazywhalecc:main' into aft-main
yoramdelangen Sep 9, 2025
38d70d8
fix wrong version number
yoramdelangen Sep 9, 2025
2c566c0
Added rezipping step
yoramdelangen Sep 10, 2025
8f5f736
Merge branch 'crazywhalecc:main' into aft-main
yoramdelangen Oct 2, 2025
a51491d
Added DOM extension
yoramdelangen Oct 9, 2025
bf1f7ef
Merge branch 'crazywhalecc:main' into update-with-2.7.7
yoramdelangen Nov 18, 2025
0af94d0
Merge pull request #4 from appsfortableau/update-with-2.7.7
yoramdelangen Nov 18, 2025
b246e58
Merge branch 'crazywhalecc:main' into aft-main
yoramdelangen Feb 11, 2026
da7a318
Bump rollup from 4.49.0 to 4.59.0
dependabot[bot] Feb 28, 2026
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
95 changes: 95 additions & 0 deletions .github/workflows/aft-build-all.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: "AFT - Build PHP versions"
on:
workflow_dispatch:
inputs:
selectos:
required: true
description: Build target OS
default: 'linux-x86_64'
type: choice
options:
- 'all'
# - 'linux-x86_64'
# - 'linux-aarch64'
- 'linux-x86_64-glibc'
# - 'linux-aarch64-glibc'
# - 'macos-x86_64'
- 'macos-aarch64'
- 'windows'
php-version:
required: true
description: PHP version to compile
default: '8.4'
type: choice
options:
- '8.4'
- '8.3'
# - '8.2'
# - '8.1'
debug:
description: Show full build logs
type: boolean

run-name: "Build '${{ inputs.selectos }}' PHP version: ${{ inputs.php-version }}"

jobs:
# Run single UNIX build
unix-static-build:
if: ${{ inputs.selectos != 'windows' && inputs.selectos != 'all' }}
uses: appsfortableau/static-php-cli/.github/workflows/build-unix.yml@main
with:
os: ${{ inputs.selectos }}
php-version: ${{ inputs.php-version }}
debug: ${{ inputs.debug }}
build-micro: true
extensions: 'odbc,pdo_odbc,bcmath,calendar,ctype,curl,dba,dom,exif,fileinfo,filter,gd,libxml,mbregex,mbstring,msgpack,mysqli,mysqlnd,opcache,openssl,pcntl,pdo,pdo_mysql,pdo_pgsql,pdo_sqlite,pdo_sqlsrv,pgsql,phar,posix,readline,redis,session,simplexml,sockets,sodium,sqlite3,sqlsrv,tokenizer,xml,xmlreader,xmlwriter,zip,zlib'

# Run UNIX build for all given versions.
unix-all-static-builds:
if: ${{ inputs.selectos == 'all' }}
uses: appsfortableau/static-php-cli/.github/workflows/build-unix.yml@main
strategy:
matrix:
selectos: [linux-x86_64-glibc, macos-aarch64]
with:
os: ${{ matrix.selectos }}
php-version: ${{ inputs.php-version }}
debug: ${{ inputs.debug }}
extensions: 'odbc,pdo_odbc,bcmath,calendar,ctype,curl,dba,dom,exif,fileinfo,filter,gd,libxml,mbregex,mbstring,msgpack,mysqli,mysqlnd,opcache,openssl,pcntl,pdo,pdo_mysql,pdo_pgsql,pdo_sqlite,pdo_sqlsrv,pgsql,phar,posix,readline,redis,session,simplexml,sockets,sodium,sqlite3,sqlsrv,tokenizer,xml,xmlreader,xmlwriter,zip,zlib'

# Run single UNIX build
# windows-static-build:
# if: ${{ inputs.selectos == 'windows' || inputs.selectos == 'all' }}
# uses: appsfortableau/static-php-cli/.github/workflows/build-windows-x86_64.yml@aft-main
# with:
# version: ${{ inputs.php-version }}
# extensions: 'odbc,pdo_odbc,bcmath,calendar,ctype,curl,dba,exif,fileinfo,filter,gd,libxml,mbregex,mbstring,msgpack,mysqli,mysqlnd,opcache,openssl,pdo,pdo_mysql,pdo_pgsql,pdo_sqlite,pdo_sqlsrv,pgsql,phar,redis,session,simplexml,sockets,sodium,sqlite3,sqlsrv,tokenizer,xml,xmlreader,xmlwriter,zip,zlib'

release-php-version:
if: ${{ inputs.selectos == 'all' }}
#needs: [unix-all-static-builds, windows-static-build]
needs: [unix-all-static-builds]
name: Release PHP version ${{ inputs.php-version }}
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
pattern: php-cli-*
- id: get_php_version
run: |
ls -la **/*
chmod +x ./php-cli-${{ inputs.php-version }}-linux-x86_64-glibc/php
echo "PHP_VERSION=$(./php-cli-${{ inputs.php-version }}-linux-x86_64-glibc/php -r "echo PHP_VERSION;")" >> "$GITHUB_OUTPUT"
- name: Recursively zip all files in each folder, naming zip after folder
run: |
find . -type d | while read dir; do
[ "$dir" = "." ] && continue
foldername=$(basename "$dir")
(cd "$dir" && zip -r "../${foldername}.zip" .)
done
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.get_php_version.outputs.PHP_VERSION }}
files: php-cli-*.zip
make_latest: true
25 changes: 25 additions & 0 deletions .github/workflows/build-windows-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,31 @@ on:
debug:
description: enable debug logs
type: boolean
workflow_call:
inputs:
version:
required: true
description: php version to compile
default: '8.4'
type: string
build-cli:
description: build cli binary
default: true
type: boolean
build-micro:
description: build phpmicro binary
type: boolean
extensions:
description: extensions to compile (comma separated)
required: true
type: string
prefer-pre-built:
description: prefer pre-built binaries (reduce build time)
type: boolean
default: true
debug:
description: enable debug logs
type: boolean

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Loading