mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
update github action CI
This commit is contained in:
parent
a72ed9ca16
commit
8f978dd187
22
.github/workflows/build-php.yml
vendored
22
.github/workflows/build-php.yml
vendored
@ -8,12 +8,10 @@ on:
|
|||||||
- "docker/**"
|
- "docker/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
integration:
|
alpine-php-env:
|
||||||
name: Build PHP ${{ matrix.php-versions }} for ${{ matrix.arch }}
|
name: alpine-env-job-${{ matrix.arch }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
matrix:
|
||||||
php-versions: [ "7.2.34", "7.3.33", "7.4.30", "8.0.20", "8.1.7" ]
|
|
||||||
arch: [ "x86_64", "aarch64", "armv7l" ]
|
arch: [ "x86_64", "aarch64", "armv7l" ]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -28,11 +26,21 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
||||||
fi
|
fi
|
||||||
|
- name: Build Docker container for preparing PHP compile environment
|
||||||
|
run: cd docker/ && docker build . --tag static-php --build-arg USE_BACKUP_ADDRESS=yes
|
||||||
|
integration:
|
||||||
|
name: Build PHP ${{ matrix.php-versions }} for ${{ matrix.arch }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
php-versions: [ "7.2.34", "7.3.33", "7.4.30", "8.0.20", "8.1.7" ]
|
||||||
|
arch: [ "x86_64", "aarch64", "armv7l" ]
|
||||||
|
needs: alpine-env-job-${{ matrix.arch }}
|
||||||
|
steps:
|
||||||
- name: Build micro and PHP distribution ${{ matrix.php-versions }} for ${{ matrix.arch }}
|
- name: Build micro and PHP distribution ${{ matrix.php-versions }} for ${{ matrix.arch }}
|
||||||
run: |
|
run: |
|
||||||
cd docker/ && docker build . --tag static-php --build-arg USE_BACKUP_ADDRESS=yes && \
|
mkdir ./dist && \
|
||||||
mkdir ../dist && \
|
docker run --rm -v $(pwd)/dist:/dist/ static-php build-php original ${{ matrix.php-versions }} all /dist/
|
||||||
docker run --rm -v $(pwd)/../dist:/dist/ static-php build-php original ${{ matrix.php-versions }} all /dist/
|
|
||||||
- name: Pack PHP ${{ matrix.php-versions }} to archive
|
- name: Pack PHP ${{ matrix.php-versions }} to archive
|
||||||
run: |
|
run: |
|
||||||
cd dist
|
cd dist
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user