-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
225 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,29 +11,23 @@ jobs: | |
steps: | ||
- name: Startup | ||
uses: actions/checkout@v3 | ||
- name: Checkout PharBuilder | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: NetherGamesMC/PharBuilder | ||
token: ${{ secrets.ng_token }} | ||
path: PharBuilder | ||
ref: pm5 | ||
- name: Install FFI | ||
run: sudo apt install -y libffi7 | ||
- name: Download PHP Release | ||
uses: dsaltares/[email protected].0 | ||
uses: dsaltares/[email protected].2 | ||
with: | ||
file: Linux.zip | ||
file: PHP-Linux-x86_64-PM5.tar.gz | ||
repo: NetherGamesMC/php-build-scripts | ||
version: "tags/8.2-pm5" | ||
version: "tags/php-8.3-ffi-latest" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Unpack PHP Release | ||
run: unzip Linux.zip && tar -xzvf PHP_Linux-x86_64.tar.gz | ||
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 | ||
run: ./bin/php7/bin/php ./bin/composer.phar install --prefer-dist --no-interaction --no-dev | ||
- name: Download pharbuilder-rs | ||
uses: dsaltares/[email protected].0 | ||
uses: dsaltares/[email protected].2 | ||
with: | ||
file: pharbuilder | ||
repo: NetherGamesMC/pharbuilder-rs | ||
|
@@ -42,10 +36,10 @@ jobs: | |
run: | | ||
echo Building... | ||
chmod +x pharbuilder | ||
./pharbuilder -i . -o PharBuilder/ProxyTransport.phar | ||
./pharbuilder -i . -o ./ProxyTransport.phar | ||
echo Build completed! | ||
- name: Upload | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ProxyTransport | ||
path: PharBuilder/ProxyTransport.phar | ||
path: ProxyTransport.phar |
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 |
---|---|---|
|
@@ -11,18 +11,20 @@ jobs: | |
steps: | ||
- name: Startup | ||
uses: actions/checkout@v3 | ||
- name: Install FFI | ||
run: sudo apt install -y libffi7 | ||
- name: Download PHP Release | ||
uses: dsaltares/[email protected].0 | ||
uses: dsaltares/[email protected].2 | ||
with: | ||
file: Linux.zip | ||
file: PHP-Linux-x86_64-PM5.tar.gz | ||
repo: NetherGamesMC/php-build-scripts | ||
version: "tags/8.2-pm5" | ||
version: "tags/php-8.3-ffi-latest" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Unpack PHP Release | ||
run: unzip Linux.zip && tar -xzvf PHP_Linux-x86_64.tar.gz | ||
run: tar -xzvf PHP-Linux-x86_64-PM5.tar.gz | ||
- name: Download Composer | ||
run: curl -o composer.phar "https://getcomposer.org/composer-stable.phar" | ||
run: curl -o ./bin/composer.phar "https://getcomposer.org/composer-stable.phar" | ||
- name: Install Composer dependencies | ||
run: ./bin/php7/bin/php composer.phar install --prefer-dist --no-interaction | ||
run: ./bin/php7/bin/php ./bin/composer.phar install --prefer-dist --no-interaction | ||
- name: Run PHPStan | ||
run: ./bin/php7/bin/php vendor/bin/phpstan.phar analyze --no-progress |
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 |
---|---|---|
|
@@ -7,15 +7,15 @@ | |
"php": "^8.1", | ||
"ext-pmmpthread": "^6.0.1", | ||
"ext-sockets": "*", | ||
"nethergamesmc/libproxy": "dev-tcp" | ||
"nethergamesmc/libproxy": "dev-pm5" | ||
}, | ||
"require-dev": { | ||
"phpstan/phpstan": "1.10.8", | ||
"nethergamesmc/pocketmine-mp": "dev-stable" | ||
}, | ||
"repositories": [ | ||
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/libproxy.git" }, | ||
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/PocketMine-MP.git" } | ||
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/PocketMine-MP.git" }, | ||
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/libproxy.git" } | ||
], | ||
"autoload": { | ||
"psr-4": { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: ProxyTransport | ||
version: 1.0 | ||
version: 1.1.0 | ||
main: NetherGames\ProxyTransport\ProxyTransport | ||
api: [4.18.0] | ||
api: [5.0.0] | ||
author: NetherGamesMC |