Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Bump version to 0.1.36 #29

Bump version to 0.1.36

Bump version to 0.1.36 #29

name: Build Release Binaries
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
build:
name: Build Binary (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
arch: x64-linux
spc_suffix: linux-x86_64.tar.gz
- os: laravel-4c16r150s-arm64-ubuntu-24.04
arch: arm64-linux
spc_suffix: linux-aarch64.tar.gz
- os: macos-latest
arch: x64-darwin
spc_suffix: macos-x86_64.tar.gz
- os: macos-14
arch: arm64-darwin
spc_suffix: macos-aarch64.tar.gz
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 -O -L "https://github.com/crazywhalecc/static-php-cli/releases/latest/download/spc-${{ matrix.spc_suffix }}"
tar xzf "spc-${{ matrix.spc_suffix }}"
chmod +x ./spc
./spc --version
- name: Build Binary
run: |
echo "" > .env
php php-parser app:build --build-version=${{ github.ref_name }}
- name: Download PHP
run: |
curl -O -L "https://dl.static-php.dev/static-php-cli/common/php-8.3.9-micro-${{ matrix.spc_suffix }}"
tar xzf "php-8.3.9-micro-${{ matrix.spc_suffix }}"
mkdir -p buildroot/bin
mv micro.sfx buildroot/bin
- name: SPC Combine
run: |
./spc micro:combine builds/php-parser -O bin/php-parser-${{ github.ref_name }}-${{ matrix.arch }}
- name: Upload binary as artifact
uses: actions/upload-artifact@v4
with:
name: php-parser-${{ github.ref_name }}-${{ matrix.arch }}
path: bin/php-parser-${{ github.ref_name }}-${{ matrix.arch }}
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
bin/php-parser-${{ github.ref_name }}-${{ matrix.arch }}
fail_on_unmatched_files: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.