Update library to latest libproxy TCP version #182
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
name: Build | |
on: push | |
jobs: | |
build: | |
name: Phar building | |
runs-on: ubuntu-latest | |
if: "contains(github.event.head_commit.message, '[Build]')" | |
steps: | |
- name: Startup | |
uses: actions/checkout@v3 | |
- name: Download PHP Release | |
uses: dsaltares/[email protected] | |
with: | |
file: PHP-Linux-x86_64-PM5.tar.gz | |
repo: NetherGamesMC/php-build-scripts | |
version: "tags/php-8.3-latest" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Unpack PHP Release | |
run: tar -xzvf PHP-Linux-x86_64-PM5.tar.gz | |
- name: Download Composer | |
run: curl -o ./bin/composer.phar "https://getcomposer.org/composer-stable.phar" | |
- name: Install Composer dependencies | |
run: ./bin/php7/bin/php ./bin/composer.phar install --prefer-dist --no-interaction --no-dev | |
- name: Download pharbuilder-rs | |
uses: dsaltares/[email protected] | |
with: | |
file: pharbuilder | |
repo: NetherGamesMC/pharbuilder-rs | |
token: ${{ secrets.ng_token }} | |
- name: Build | |
run: | | |
echo Building... | |
chmod +x pharbuilder | |
./pharbuilder -i . -o ./ProxyTransport.phar | |
echo Build completed! | |
- name: Upload | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ProxyTransport | |
path: ProxyTransport.phar |