Skip to content

Bump version to 0.1.29 #8

Bump version to 0.1.29

Bump version to 0.1.29 #8

name: Build Windows Release Binary
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
build:
name: Build Binary (Windows)
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
extensions: bcmath,calendar,ctype,curl,dba,dom,exif,fileinfo,filter,iconv,mbstring,openssl,pcntl,pdo_mysql,pdo_sqlite,pdo,phar,posix,readline,session,simplexml,sockets,sodium,sqlite3,tokenizer,xml,xmlreader,xmlwriter,zip,zlib
- name: Install dependencies
run: |
composer install --prefer-dist --no-progress --no-dev --quiet
- name: Install SPC
run: |
curl -L -O https://github.com/crazywhalecc/static-php-cli/releases/latest/download/spc-windows-x64.exe
.\spc-windows-x64.exe --version
- name: Build Binary
run: |
php php-parser app:build --build-version=${{ github.ref_name }}
- name: Download PHP
run: |
curl -L -O https://dl.static-php.dev/static-php-cli/windows/spc-max/php-8.3.9-micro-win.zip
tar -xf php-8.3.9-micro-win.zip
mkdir -p buildroot/bin
mv micro.sfx buildroot/bin
- name: SPC Combine
run: |
.\spc-windows-x64.exe micro:combine builds/php-parser -O bin/php-parser-${{ github.ref_name }}-x64-win32
- name: Upload binary as artifact
uses: actions/upload-artifact@v4
with:
name: php-parser-${{ github.ref_name }}-x64-win32
path: bin/php-parser-${{ github.ref_name }}-x64-win32.exe
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
bin/php-parser-${{ github.ref_name }}-x64-win32.exe
fail_on_unmatched_files: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}