Skip to content

Commit 9bd2708

Browse files
committed
Update build-release-binaries.yml
1 parent f9cc410 commit 9bd2708

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/build-release-binaries.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,32 @@ jobs:
4444

4545
- name: Install dependencies
4646
run: |
47-
composer install --prefer-dist --no-progress --no-dev
47+
composer install --prefer-dist --no-progress --no-dev --quiet
4848
4949
- name: Install SPC
5050
run: |
51-
wget "https://github.com/crazywhalecc/static-php-cli/releases/latest/download/spc-${{ matrix.spc_suffix }}"
51+
curl -O -L "https://github.com/crazywhalecc/static-php-cli/releases/latest/download/spc-${{ matrix.spc_suffix }}"
5252
tar xzf "spc-${{ matrix.spc_suffix }}"
5353
chmod +x ./spc
5454
./spc --version
5555
56-
- name: Build binary
56+
- name: Build Binary
5757
run: |
58-
php php-parser compile-binary --arch=${{ matrix.arch }}
58+
echo "" > .env
59+
php php-parser app:build --build-version=${{ env.VERSION }}
60+
61+
- name: Download PHP
62+
run: |
63+
./spc download --with-php=8.2 --prefer-pre-built --for-extensions="bcmath,calendar,ctype,curl,dba,dom,exif,fileinfo,filter,iconv,mbregex,mbstring,openssl,pcntl,pdo_mysql,pdo_sqlite,pdo,phar,posix,readline,session,simplexml,sockets,sodium,sqlite3,tokenizer,xml,xmlreader,xmlwriter,zip,zlib"
64+
65+
# - name: SPC Doctor
66+
# run: |
67+
# ./spc doctor --auto-fix
68+
69+
- name: SPC Build and Combine
70+
run: |
71+
./spc build --build-micro "bcmath,calendar,ctype,curl,dba,dom,exif,fileinfo,filter,iconv,mbregex,mbstring,openssl,pcntl,pdo_mysql,pdo_sqlite,pdo,phar,posix,readline,session,simplexml,sockets,sodium,sqlite3,tokenizer,xml,xmlreader,xmlwriter,zip,zlib"
72+
./spc micro:combine builds/php-parser -O bin/php-parser-${{ env.VERSION }}-${{ matrix.arch }}
5973
ls -l bin/
6074
6175
- name: Upload binary as artifact

0 commit comments

Comments
 (0)