-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHP 8.3 + Cache on workflows + Pint + Build script
- Loading branch information
Showing
9 changed files
with
97 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
- Bumped https://github.com/SRWieZ/php-svg-ps-converter to 1.1.1 | ||
- Compiled binaries | ||
|
||
## [1.0.5] - 2023-11-01 | ||
More robust autoload | ||
|
||
## [1.0.4] - 2023-11-01 | ||
Fix binary vendor autoload | ||
|
||
## [1.0.3] - 2023-11-01 | ||
Fix composer binary vendor autoload | ||
|
||
## [1.0.2] - 2023-11-01 | ||
Fixed composer binary path from svgtinyps.phpto svgtinyps | ||
|
||
## [1.0.1] - 2023-11-01 | ||
Automatic .phar asset on release | ||
|
||
## [1.0.0] - 2023-11-01 | ||
First version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,43 @@ | ||
# removing old build files | ||
rm -rf ./build/ | ||
#rm -rf ./tmp/ | ||
# Removing old build files | ||
rm -rf build/bin/ | ||
#rm -rf build/buildroot/ | ||
#rm -rf build/downloads/ | ||
#rm -rf build/source/ | ||
#rm -rf build/static-php-cli/ | ||
|
||
# Directories | ||
mkdir -p build/bin/ | ||
|
||
# Build phar file using box and bos.json | ||
composer pint | ||
composer box compile | ||
|
||
#mkdir -p ./tmp | ||
#cd tmp | ||
#curl -O https://dl.static-php.dev/static-php-cli/common/php-8.2.12-micro-macos-x86_64.tar.gz | ||
#tar -xvf php-8.2.12-micro-macos-x86_64.tar.gz | ||
#cd .. | ||
# Fetch or update static-php-cli | ||
if [ -d "build/static-php-cli" ]; then | ||
cd build/static-php-cli/ | ||
# git reset --hard HEAD | ||
git pull | ||
else | ||
cd build/ | ||
git clone https://github.com/crazywhalecc/static-php-cli.git | ||
cd static-php-cli/ | ||
fi | ||
|
||
# Install dependencies | ||
composer install --no-interaction | ||
chmod +x bin/spc | ||
|
||
# Back to main directory | ||
cd ../ | ||
|
||
# Build PHP Micro with only the extensions we need | ||
./static-php-cli/bin/spc doctor | ||
./static-php-cli/bin/spc download --with-php=8.2 --for-extensions=dom,phar | ||
./static-php-cli/bin/spc build dom,phar --build-micro | ||
|
||
#TODO : build static php first to have pretty much only ext-dom and reduce size of binary | ||
#TODO : Make it CI/CD ready | ||
# Build binary | ||
./static-php-cli/bin/spc micro:combine bin/svgtinyps.phar --output=bin/svgtinyps | ||
chmod 0755 bin/svgtinyps | ||
|
||
mkdir -p ./build/macos-x86_64 | ||
cat ./tmp/micro.sfx ./build/svgtinyps.phar > ./build/macos-x86_64/svgtinyps | ||
chmod 0755 ./build/macos-x86_64/svgtinyps | ||
# Check if it's working ! | ||
cd ../ | ||
./build/bin/svgtinyps help |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters