Skip to content

Commit 8145749

Browse files
committed
[Build] get rid of virions
1 parent 5747f2a commit 8145749

File tree

4 files changed

+8
-29
lines changed

4 files changed

+8
-29
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ jobs:
1111
steps:
1212
- name: Startup
1313
uses: actions/checkout@v3
14-
- name: Checkout PharBuilder
15-
uses: actions/checkout@v3
16-
with:
17-
repository: NetherGamesMC/PharBuilder
18-
token: ${{ secrets.ng_token }}
19-
path: PharBuilder
20-
ref: pm5
2114
- name: Download PHP Release
2215
uses: dsaltares/[email protected]
2316
with:
@@ -37,12 +30,10 @@ jobs:
3730
run: |
3831
echo Building...
3932
chmod +x pharbuilder
40-
./pharbuilder -i . -o PharBuilder/NGPlots.phar
41-
echo Injecting Virions...
42-
./bin/php7/bin/php -dphar.readonly=0 PharBuilder/libasynql.phar PharBuilder/NGPlots.phar
33+
./pharbuilder -i . -o ./NGPlots.phar
4334
echo Build completed!
4435
- name: Upload
4536
uses: actions/[email protected]
4637
with:
4738
name: NGPlots
48-
path: PharBuilder/NGPlots.phar
39+
path: NGPlots.phar

.github/workflows/phpstan.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ jobs:
2020
token: ${{ secrets.GITHUB_TOKEN }}
2121
- name: Unpack PHP Release
2222
run: tar -xzvf PHP-Linux-x86_64-PM5.tar.gz
23-
- name: Checkout PharBuilder
24-
uses: actions/checkout@v3
25-
with:
26-
repository: NetherGamesMC/PharBuilder
27-
token: ${{ secrets.ng_token }}
28-
path: PharBuilder
29-
ref: pm5
3023
- name: Download Composer
3124
run: curl -o composer.phar "https://getcomposer.org/composer-stable.phar"
3225
- name: Add Composer GitHub access token

composer.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,21 @@
55
"type": "project",
66
"require": {
77
"php": "^8.0",
8-
"sof3/await-generator": "^3.6"
8+
"nethergamesmc/libasynql": "dev-pm5",
9+
"sof3/await-generator": "3.6.1"
910
},
1011
"require-dev": {
1112
"phpstan/phpstan": "1.2.0",
13+
"nethergamesmc/pocketmine-mp": "dev-stable",
1214
"nethergamesmc/ngessentials": "dev-pm5"
1315
},
1416
"repositories": [
17+
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/AsyncIterator.git" },
1518
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/InvMenu.git" },
16-
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/Lobby.git" },
1719
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/NGEssentials.git" },
20+
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/PocketMine-MP.git" },
1821
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/libAnticheat.git" },
1922
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/libDiscord.git" },
20-
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/libMMO.git" },
2123
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/libMatchmake.git" },
2224
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/libPhysX.git" },
2325
{ "type": "vcs", "url": "[email protected]:NetherGamesMC/libReplay.git" },

phpstan.neon.dist

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,5 @@ parameters:
33
checkMissingIterableValueType: false
44
paths:
55
- src
6-
bootstrapFiles:
7-
- phar://PharBuilder/PocketMine-MP.phar/vendor/autoload.php
86
scanDirectories:
9-
- vendor/nethergamesmc/ngessentials
10-
- phar://PharBuilder/PocketMine-MP.phar
11-
- phar://PharBuilder/libasynql.phar
12-
excludePaths:
13-
analyse:
14-
- src/MyPlot/provider
7+
- vendor

0 commit comments

Comments
 (0)