Skip to content

Commit

Permalink
Merge pull request #23 from huangzhhui/master
Browse files Browse the repository at this point in the history
Temporarily remove linux aarch64 builds
  • Loading branch information
huangzhhui authored Sep 27, 2022
2 parents 153d70a + 744149c commit 03b6a27
Showing 1 changed file with 0 additions and 82 deletions.
82 changes: 0 additions & 82 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 03b6a27

Please sign in to comment.