forked from jasonw4331/MyPlot
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.44 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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: Checkout PharBuilder
uses: actions/checkout@v3
with:
repository: NetherGamesMC/PharBuilder
token: ${{ secrets.ng_token }}
path: PharBuilder
ref: pm5
- name: Download PHP Release
uses: dsaltares/fetch-gh-release-asset@1.0.0
with:
file: Linux.zip
repo: NetherGamesMC/php-build-scripts
version: "tags/8.2-pm5"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Unpack PHP Release
run: unzip Linux.zip && tar -xzvf PHP_Linux-x86_64.tar.gz
- name: Download pharbuilder-rs
uses: dsaltares/fetch-gh-release-asset@1.1.0
with:
file: pharbuilder
repo: NetherGamesMC/pharbuilder-rs
token: ${{ secrets.ng_token }}
- name: Build
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
echo Build completed!
- name: Upload
uses: actions/upload-artifact@v4.3.0
with:
name: NGPlots
path: PharBuilder/NGPlots.phar