diff --git a/.github/workflows/build-php-arm.yml b/.github/workflows/build-php-arm.yml deleted file mode 100644 index c70b62d1..00000000 --- a/.github/workflows/build-php-arm.yml +++ /dev/null @@ -1,149 +0,0 @@ -name: Build PHP for ARM64 in self-hosted Machine - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build-72-arm64: - env: - PHP_VERSION: 7.2.34 - runs-on: [self-hosted] - steps: - - uses: actions/checkout@v2 - - name: Change Dockerfile to aarch64 - run: cd docker/ && sed -ie 's/alpine:latest/multiarch\/alpine:aarch64-edge/g' Dockerfile && docker run --rm --privileged multiarch/qemu-user-static:register --reset - - name: Build PHP ${{ env.PHP_VERSION }} - run: cd docker/ && docker build . --file Dockerfile --tag static-php --build-arg USE_BACKUP_ADDRESS=no --build-arg COMPILE_PHP_VERSION=${{ env.PHP_VERSION }} - - name: Push PHP ${{ env.PHP_VERSION }} to dist - run: | - mkdir dist && docker run --rm -v $(pwd)/dist:/dist/ static-php cp php-dist/bin/php /dist/ - cd dist && tar -zcvf "php-${{ env.PHP_VERSION }}-static-bin-aarch64.tar.gz" ./php && rm ./php - - name: Deploy to Zhamao Server - uses: easingthemes/ssh-deploy@main - env: - SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SERVER_SECRET_KEY }} - ARGS: "-rltgoDzvO" - SOURCE: "dist/" - REMOTE_HOST: ${{ secrets.DEPLOY_SERVER_HOST }} - REMOTE_PORT: ${{ secrets.DEPLOY_SERVER_PORT }} - REMOTE_USER: ${{ secrets.DEPLOY_SERVER_USER }} - TARGET: ${{ secrets.DEPLOY_SERVER_TARGET }} - - name: Remove dist directory - run: | - rm -rf dist/ - docker images | grep -v REPOSITORY | awk '{print $3}' | xargs docker rmi --force - build-73-arm64: - env: - PHP_VERSION: 7.3.33 - runs-on: [self-hosted] - steps: - - uses: actions/checkout@v2 - - name: Change Dockerfile to aarch64 - run: cd docker/ && sed -ie 's/alpine:latest/multiarch\/alpine:aarch64-edge/g' Dockerfile && docker run --rm --privileged multiarch/qemu-user-static:register --reset - - name: Build PHP ${{ env.PHP_VERSION }} - run: cd docker/ && docker build . --file Dockerfile --tag static-php --build-arg USE_BACKUP_ADDRESS=no --build-arg COMPILE_PHP_VERSION=${{ env.PHP_VERSION }} - - name: Push PHP ${{ env.PHP_VERSION }} to dist - run: | - mkdir dist && docker run --rm -v $(pwd)/dist:/dist/ static-php cp php-dist/bin/php /dist/ - cd dist && tar -zcvf "php-${{ env.PHP_VERSION }}-static-bin-aarch64.tar.gz" ./php && rm ./php - - name: Deploy to Zhamao Server - uses: easingthemes/ssh-deploy@main - env: - SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SERVER_SECRET_KEY }} - ARGS: "-rltgoDzvO" - SOURCE: "dist/" - REMOTE_HOST: ${{ secrets.DEPLOY_SERVER_HOST }} - REMOTE_PORT: ${{ secrets.DEPLOY_SERVER_PORT }} - REMOTE_USER: ${{ secrets.DEPLOY_SERVER_USER }} - TARGET: ${{ secrets.DEPLOY_SERVER_TARGET }} - - name: Remove dist directory - run: | - rm -rf dist/ - docker images | grep -v REPOSITORY | awk '{print $3}' | xargs docker rmi --force - build-74-arm64: - env: - PHP_VERSION: 7.4.27 - runs-on: [self-hosted] - steps: - - uses: actions/checkout@v2 - - name: Change Dockerfile to aarch64 - run: cd docker/ && sed -ie 's/alpine:latest/multiarch\/alpine:aarch64-edge/g' Dockerfile && docker run --rm --privileged multiarch/qemu-user-static:register --reset - - name: Build PHP ${{ env.PHP_VERSION }} - run: cd docker/ && docker build . --file Dockerfile --tag static-php --build-arg USE_BACKUP_ADDRESS=no --build-arg COMPILE_PHP_VERSION=${{ env.PHP_VERSION }} - - name: Push PHP ${{ env.PHP_VERSION }} to dist - run: | - mkdir dist && docker run --rm -v $(pwd)/dist:/dist/ static-php cp php-dist/bin/php /dist/ - cd dist && tar -zcvf "php-${{ env.PHP_VERSION }}-static-bin-aarch64.tar.gz" ./php && rm ./php - - name: Deploy to Zhamao Server - uses: easingthemes/ssh-deploy@main - env: - SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SERVER_SECRET_KEY }} - ARGS: "-rltgoDzvO" - SOURCE: "dist/" - REMOTE_HOST: ${{ secrets.DEPLOY_SERVER_HOST }} - REMOTE_PORT: ${{ secrets.DEPLOY_SERVER_PORT }} - REMOTE_USER: ${{ secrets.DEPLOY_SERVER_USER }} - TARGET: ${{ secrets.DEPLOY_SERVER_TARGET }} - - name: Remove dist directory - run: | - rm -rf dist/ - docker images | grep -v REPOSITORY | awk '{print $3}' | xargs docker rmi --force - build-80-arm64: - env: - PHP_VERSION: 8.0.15 - runs-on: [self-hosted] - steps: - - uses: actions/checkout@v2 - - name: Change Dockerfile to aarch64 - run: cd docker/ && sed -ie 's/alpine:latest/multiarch\/alpine:aarch64-edge/g' Dockerfile && docker run --rm --privileged multiarch/qemu-user-static:register --reset - - name: Build PHP ${{ env.PHP_VERSION }} - run: cd docker/ && docker build . --file Dockerfile --tag static-php --build-arg USE_BACKUP_ADDRESS=no --build-arg COMPILE_PHP_VERSION=${{ env.PHP_VERSION }} - - name: Push PHP ${{ env.PHP_VERSION }} to dist - run: | - mkdir dist && docker run --rm -v $(pwd)/dist:/dist/ static-php cp php-dist/bin/php /dist/ - cd dist && tar -zcvf "php-${{ env.PHP_VERSION }}-static-bin-aarch64.tar.gz" ./php && rm ./php - - name: Deploy to Zhamao Server - uses: easingthemes/ssh-deploy@main - env: - SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SERVER_SECRET_KEY }} - ARGS: "-rltgoDzvO" - SOURCE: "dist/" - REMOTE_HOST: ${{ secrets.DEPLOY_SERVER_HOST }} - REMOTE_PORT: ${{ secrets.DEPLOY_SERVER_PORT }} - REMOTE_USER: ${{ secrets.DEPLOY_SERVER_USER }} - TARGET: ${{ secrets.DEPLOY_SERVER_TARGET }} - - name: Remove dist directory - run: | - rm -rf dist/ - docker images | grep -v REPOSITORY | awk '{print $3}' | xargs docker rmi --force - build-81-arm64: - env: - PHP_VERSION: 8.1.4 - runs-on: [self-hosted] - steps: - - uses: actions/checkout@v2 - - name: Change Dockerfile to aarch64 - run: cd docker/ && sed -ie 's/alpine:latest/multiarch\/alpine:aarch64-edge/g' Dockerfile && docker run --rm --privileged multiarch/qemu-user-static:register --reset - - name: Build PHP ${{ env.PHP_VERSION }} - run: cd docker/ && docker build . --file Dockerfile --tag static-php --build-arg USE_BACKUP_ADDRESS=no --build-arg COMPILE_PHP_VERSION=${{ env.PHP_VERSION }} - - name: Push PHP ${{ env.PHP_VERSION }} to dist - run: | - mkdir dist && docker run --rm -v $(pwd)/dist:/dist/ static-php cp php-dist/bin/php /dist/ - cd dist && tar -zcvf "php-${{ env.PHP_VERSION }}-static-bin-aarch64.tar.gz" ./php && rm ./php - - name: Deploy to Zhamao Server - uses: easingthemes/ssh-deploy@main - env: - SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SERVER_SECRET_KEY }} - ARGS: "-rltgoDzvO" - SOURCE: "dist/" - REMOTE_HOST: ${{ secrets.DEPLOY_SERVER_HOST }} - REMOTE_PORT: ${{ secrets.DEPLOY_SERVER_PORT }} - REMOTE_USER: ${{ secrets.DEPLOY_SERVER_USER }} - TARGET: ${{ secrets.DEPLOY_SERVER_TARGET }} - - name: Remove dist directory - run: | - rm -rf dist/ - docker images | grep -v REPOSITORY | awk '{print $3}' | xargs docker rmi --force