This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
forked from pmmp/PHP-Binaries
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
4a39aae
commit c00af11
Showing
3 changed files
with
71 additions
and
81 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 |
---|---|---|
|
@@ -71,63 +71,6 @@ jobs: | |
workspace.tar.gz | ||
if-no-files-found: error | ||
|
||
macos: | ||
name: MacOS (PM ${{ matrix.pm-version-major }}) | ||
runs-on: macos-11.0 | ||
strategy: | ||
matrix: | ||
pm-version-major: [ 4, 5 ] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install tools and dependencies | ||
run: brew install libtool autoconf automake pkg-config bison re2c | ||
|
||
- name: Prepare compile.sh download cache | ||
id: download-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ./download_cache | ||
key: compile-sh-cache-ssl-https-${{ hashFiles('./compile.sh') }} | ||
restore-keys: compile-sh-cache-ssl-https- | ||
|
||
- name: Compile PHP | ||
run: | | ||
export PATH="/usr/local/opt/bison/bin:$PATH" | ||
set -ex | ||
trap "exit 1" ERR | ||
./compile.sh -t mac-x86-64 -j4 -g -P ${{ matrix.pm-version-major }} -c ./download_cache -D | ||
- name: Create tarball | ||
run: | | ||
tar -czf ./PHP-MacOS-x86_64-PM${{ matrix.pm-version-major }}.tar.gz bin | ||
tar -czf ./PHP-MacOS-x86_64-PM${{ matrix.pm-version-major }}-debugging-symbols.tar.gz bin-debug | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: MacOS-PM${{ matrix.pm-version-major }} | ||
path: | | ||
./PHP-MacOS-x86_64-PM${{ matrix.pm-version-major }}*.tar.gz | ||
install.log | ||
compile.sh | ||
if-no-files-found: error | ||
|
||
- name: Prepare workspace for upload | ||
if: failure() | ||
run: tar -czf workspace.tar.gz install_data | ||
|
||
- name: Upload workspace | ||
uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: MacOS-workspace-PM${{ matrix.pm-version-major }} | ||
path: | | ||
workspace.tar.gz | ||
if-no-files-found: error | ||
|
||
windows: | ||
name: Windows (PM ${{ matrix.pm-version-major }}) | ||
runs-on: windows-2019 | ||
|
@@ -190,34 +133,11 @@ jobs: | |
with: | ||
path: ${{ github.workspace }} | ||
|
||
- name: Generate release notes | ||
run: | | ||
echo "Last updated on **$(date -u +'%Y-%m-%d at %H:%M:%S %Z')**" > changelog.md | ||
echo -e "\n\n" >> changelog.md | ||
echo "Built by: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" >> changelog.md | ||
if [[ "${{ github.ref_name }}" != "${{ github.event.repository.default_branch }}" ]]; then | ||
echo -e "\n\n\n" >> changelog.md | ||
if [[ "${{ github.ref_name }}" == *"preview" ]]; then | ||
echo "# :warning: :radioactive: EXPERIMENTAL!!! :radioactive: :warning:" >> changelog.md | ||
echo "### Your server and/or plugins may crash or misbehave with this release!" >> changelog.md | ||
echo "### Consider downloading the [recommended release](${{ github.server_url }}/${{ github.repository }}/releases/latest) instead." >> changelog.md | ||
else | ||
echo ":warning: WARNING! :warning:" >> changelog.md | ||
echo "Some plugins might not work properly on this version yet." >> changelog.md | ||
echo "If you have problems, try the [recommended release](${{ github.server_url }}/${{ github.repository }}/releases/latest) instead." >> changelog.md | ||
fi | ||
else | ||
echo ":white_check_mark: This version is recommended for production servers." >> changelog.md | ||
fi | ||
echo -e "\n\n\n" >> changelog.md | ||
echo ":information_source: **Linux/MacOS users**: Please see [this page](https://doc.pmmp.io/en/rtfd/faq/installation/opcache.so.html) to fix extension loading errors. Also, check out the [PocketMine-MP Linux/MacOS installer](https://doc.pmmp.io/en/rtfd/installation/get-dot-pmmp-dot-io.html)." >> changelog.md | ||
- name: Update latest branch release | ||
uses: ncipollo/[email protected] | ||
with: | ||
artifacts: | | ||
${{ github.workspace }}/Linux-PM*/*.tar.gz | ||
${{ github.workspace }}/MacOS-PM*/*.tar.gz | ||
${{ github.workspace }}/Windows-PM*/*.zip | ||
makeLatest: ${{ github.ref_name == github.event.repository.default_branch }} | ||
name: PHP ${{ steps.version.outputs.PHP_VERSION }} - Latest (Build ${{ github.run_number }}) | ||
|
@@ -233,7 +153,6 @@ jobs: | |
with: | ||
artifacts: | | ||
${{ github.workspace }}/Linux-PM*/*.tar.gz | ||
${{ github.workspace }}/MacOS-PM*/*.tar.gz | ||
${{ github.workspace }}/Windows-PM*/*.zip | ||
makeLatest: false | ||
name: PHP ${{ steps.version.outputs.PHP_VERSION }} (Build ${{ github.run_number }}) | ||
|
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
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