-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from huangzhhui/master
Temporarily remove linux aarch64 builds
- Loading branch information
Showing
1 changed file
with
0 additions
and
82 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 |
---|---|---|
|
@@ -88,85 +88,3 @@ jobs: | |
asset_path: ./box | ||
asset_name: box_${{ matrix.arch }}_linux | ||
asset_content_type: application/x-sh | ||
aarch64: | ||
name: PHP ${{ matrix.php-version }} ${{ matrix.arch }} | ||
runs-on: [self-hosted, linux, arm64] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: [ "8.1" ] | ||
arch: [ "aarch64" ] | ||
max-parallel: 4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download PHP Cli | ||
id: php_cli | ||
run: | | ||
gh run download 2600362812 -R dixyes/lwmbs -n cli_static_${{ matrix.php-version }}_musl_${{ matrix.arch }}_3b7cea7f1563d18a98d3889db7cf0018391d8df57c0f77153eb1d1f28261bf96 | ||
ls -a | ||
chmod 755 ./php | ||
- name: Download Composer | ||
id: composer | ||
run: | | ||
wget https://getcomposer.org/download/2.3.7/composer.phar | ||
chmod 755 ./composer.phar | ||
- name: Vendor Installation | ||
id: vendor_installation | ||
run: | | ||
cd src | ||
../php ../composer.phar install -o | ||
- name: Create ~/.box folder | ||
id: create_folder | ||
run: | | ||
cd ~ | ||
mkdir .box | ||
chmod 755 .box | ||
- name: Build Box | ||
id: box | ||
continue-on-error: true | ||
run: | | ||
./php src/bin/hyperf.php config set github.access-token ${{ env.GITHUB_TOKEN }} | ||
./php src/bin/hyperf.php config set-php-version ${{ matrix.php-version }} | ||
./php src/bin/hyperf.php build-prepare | ||
./php src/bin/hyperf.php build-self --no-dev | ||
mv ~/.box/box ./box | ||
./box version | ||
- name: Upload artifact for box | ||
if: steps.box.outcome == 'success' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: box_${{ matrix.arch }} | ||
path: | | ||
box | ||
- name: Fail if box build failed | ||
if: steps.box.outcome != 'success' | ||
run: | | ||
false | ||
- name: Get release | ||
id: get_release | ||
uses: bruceadams/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload Release Asset | ||
if: steps.box.outcome == 'success' | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.get_release.outputs.upload_url }} | ||
asset_path: ./box | ||
asset_name: box_${{ matrix.arch }}_linux | ||
asset_content_type: application/x-sh |