Skip to content

Commit 5c6b9a3

Browse files
authored
Update build-windows-x86_64.yml
1 parent c7361b0 commit 5c6b9a3

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

.github/workflows/build-windows-x86_64.yml

+3-16
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,8 @@ jobs:
3939
key: composer-dependencies
4040

4141
# name: Set all extensions
42-
- run: echo "extensions-all=amqp,apcu,bcmath,bz2,calendar,ctype,curl,dba,dom,exif,ffi,fileinfo,filter,gd,iconv,igbinary,libxml,mbregex,mbstring,msgpack,mysqli,mysqlnd,opcache,openssl,pdo,pdo_mysql,pdo_sqlite,pdo_sqlsrv,phar,redis,session,shmop,simplexml,soap,sockets,sqlite3,sqlsrv,sysvshm,tokenizer,xml,xmlreader,xmlwriter,zip,zlib" >> $env:GITHUB_ENV
42+
- run: echo "extensions=amqp,apcu,bcmath,bz2,calendar,ctype,curl,dba,dom,exif,ffi,fileinfo,filter,gd,iconv,igbinary,libxml,mbregex,mbstring,msgpack,mysqli,mysqlnd,opcache,openssl,pdo,pdo_mysql,pdo_sqlite,pdo_sqlsrv,phar,redis,session,shmop,simplexml,soap,sockets,sqlite3,sqlsrv,sysvshm,tokenizer,xml,xmlreader,xmlwriter,zip,zlib" >> $env:GITHUB_ENV
4343

44-
# name: Set part extensions
45-
- run: echo "extensions=bcmath,bz2,calendar,ctype,curl,dom,exif,fileinfo,filter,gd,iconv,libxml,mbregex,mbstring,mysqli,mysqlnd,opcache,openssl,pdo,pdo_mysql,phar,redis,session,simplexml,soap,sockets,tokenizer,xml,xmlreader,xmlwriter,zip,zlib" >> $env:GITHUB_ENV
46-
4744
# If there's no Composer cache, install dependencies
4845
- if: steps.cache-composer-deps.outputs.cache-hit != 'true'
4946
run: composer update --no-dev --classmap-authoritative
@@ -62,12 +59,9 @@ jobs:
6259

6360
- run: ./bin/spc doctor
6461

65-
# Rm php-src
66-
- run: rm downloads/php-*.tar.xz -Force
67-
- run: rm buildroot source locale -Force
68-
6962
# If there's no dependencies cache, fetch sources, with or without debug
70-
- run: ./bin/spc download --with-php="${{ matrix.version }}" --for-extensions="${{ env.extensions-all }}" ${{ env.SPC_BUILD_DEBUG }} ${{ env.SPC_PRE_BUILT }}
63+
- run: ./bin/spc download --with-php="${{ matrix.version }}" --for-extensions="${{ env.extensions }}" ${{ env.SPC_BUILD_DEBUG }} ${{ env.SPC_PRE_BUILT }}
64+
- run: ./bin/spc switch-php-version ${{ matrix.version }}
7165

7266
# Run build command
7367
- run: ./bin/spc build "${{ env.extensions }}" -I "memory_limit=256M" --with-libs="freetype,libavif,libjpeg,libwebp" ${{ env.SPC_BUILD_DEBUG }} ${{ env.SPC_BUILD_CLI }} ${{ env.SPC_BUILD_MICRO }} ${{ env.SPC_BUILD_FPM }}
@@ -76,13 +70,6 @@ jobs:
7670
- if: inputs.build-cli == true
7771
run: mkdir dist2 && cp buildroot/bin/php.exe dist2/ && cd dist2 && tar -zcvf "php-${{ matrix.version }}-windows-x86_64.tar.gz" ./php.exe && rm ./php.exe
7872

79-
# Run build command
80-
- run: ./bin/spc build "${{ env.extensions-all }}" -I "memory_limit=256M" --with-libs="freetype,libavif,libjpeg,libwebp" ${{ env.SPC_BUILD_DEBUG }} ${{ env.SPC_BUILD_CLI }} ${{ env.SPC_BUILD_MICRO }} ${{ env.SPC_BUILD_FPM }}
81-
82-
# Pack PHP to archive
83-
- if: inputs.build-cli == true
84-
run: cp buildroot/bin/php.exe dist2/ && cd dist2 && tar -zcvf "php-${{ matrix.version }}-windows-x86_64-all-extenstions.tar.gz" ./php.exe && rm ./php.exe
85-
8673
# Upload tar
8774
- if: ${{ inputs.build-cli == true }}
8875
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)