Skip to content

Commit

Permalink
[Build] get rid of virions
Browse files Browse the repository at this point in the history
  • Loading branch information
dries-c committed Mar 27, 2024
1 parent 5747f2a commit 8dbcf3f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 29 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ 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: Download PHP Release
uses: dsaltares/[email protected]
with:
Expand All @@ -37,12 +30,10 @@ jobs:
run: |
echo Building...
chmod +x pharbuilder
./pharbuilder -i . -o PharBuilder/NGPlots.phar
echo Injecting Virions...
./bin/php7/bin/php -dphar.readonly=0 PharBuilder/libasynql.phar PharBuilder/NGPlots.phar
./pharbuilder -i . -o ./NGPlots.phar
echo Build completed!
- name: Upload
uses: actions/[email protected]
with:
name: NGPlots
path: PharBuilder/NGPlots.phar
path: NGPlots.phar
7 changes: 0 additions & 7 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Unpack PHP Release
run: tar -xzvf PHP-Linux-x86_64-PM5.tar.gz
- name: Checkout PharBuilder
uses: actions/checkout@v3
with:
repository: NetherGamesMC/PharBuilder
token: ${{ secrets.ng_token }}
path: PharBuilder
ref: pm5
- name: Download Composer
run: curl -o composer.phar "https://getcomposer.org/composer-stable.phar"
- name: Add Composer GitHub access token
Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@
"type": "project",
"require": {
"php": "^8.0",
"sof3/await-generator": "^3.6"
"nethergamesmc/libasynql": "dev-pm5",
"sof3/await-generator": "3.6.1"
},
"require-dev": {
"phpstan/phpstan": "1.2.0",
"nethergamesmc/pocketmine-mp": "dev-stable",
"nethergamesmc/ngessentials": "dev-pm5"
},
"repositories": [
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/InvMenu.git" },
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/Lobby.git" },
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/NGEssentials.git" },
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/PocketMine-MP.git" },
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/libAnticheat.git" },
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/libDiscord.git" },
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/libMMO.git" },
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/libMatchmake.git" },
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/libPhysX.git" },
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/libReplay.git" },
Expand Down
9 changes: 1 addition & 8 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,5 @@ parameters:
checkMissingIterableValueType: false
paths:
- src
bootstrapFiles:
- phar://PharBuilder/PocketMine-MP.phar/vendor/autoload.php
scanDirectories:
- vendor/nethergamesmc/ngessentials
- phar://PharBuilder/PocketMine-MP.phar
- phar://PharBuilder/libasynql.phar
excludePaths:
analyse:
- src/MyPlot/provider
- vendor

0 comments on commit 8dbcf3f

Please sign in to comment.