forked from DaisukeDaisuke/AndroidPHP
-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (45 loc) · 1.64 KB
/
main.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
49
50
51
52
53
54
55
name: Build PHP Binaries
on:
push:
workflow_dispatch:
jobs:
android:
name: Android (PM 5)
runs-on: ubuntu-latest
steps:
- name: Init directories
run: mkdir -p aarch64-linux-musl
- name: Fetch aarch64-linux-musl from github
working-directory: aarch64-linux-musl
run: wget -q -O "aarch64-linux-musl.tar.xz" "https://github.com/DaisukeDaisuke/musl-cross-make/releases/latest/download/aarch64-linux-musl.tar.xz"
- name: Unzip aarch64-linux-musl
working-directory: aarch64-linux-musl
run: tar Jxfv aarch64-linux-musl.tar.xz
- uses: actions/checkout@v2
with:
repository: NetherGamesMC/php-build-scripts
path: php-build-scripts
ref: php/8.2
- name: Install tools and dependencies
run: |
sudo apt update &> /dev/null
sudo apt install -y re2c libtool libtool-bin zlib1g-dev libcurl4-openssl-dev libxml2-dev libyaml-dev libgmp-dev libzip-dev libssl-dev &> /dev/null
- name: Making aarch64 php
working-directory: php-build-scripts
run: ./compile.sh -t linux64 -j14 -P5 -g
- name: Upload release artifacts
uses: actions/upload-artifact@v4
with:
name: release_artifacts
path: |
${{ github.workspace }}/php
${{ github.workspace }}/php.ini
- name: Create release
uses: marvinpinto/action-automatic-releases@latest
with:
files: |
php
php.ini
title: Latest PHP
automatic_release_tag: "latest"
repo_token: ${{ secrets.GITHUB_TOKEN }}