From 0d9a635275e52062be70b312be58f7a2f1c3baeb Mon Sep 17 00:00:00 2001 From: nmtho <144540995+toby7002@users.noreply.github.com> Date: Sat, 25 Nov 2023 18:04:31 +0700 Subject: [PATCH] Skip required extensions --- .github/workflows/build.yml | 71 +++++++++++++++++++------------------ 1 file changed, 36 insertions(+), 35 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f2e028c..b246ef6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,36 +1,37 @@ -name: Build PHAR - -on: - push: - -jobs: - build-phar: - name: Build PHAR - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: - php: ["8.1"] - - steps: - - uses: actions/checkout@v4 - - - name: Setup PHP - uses: pmmp/setup-php-action@2.0.0 - with: - php-version: ${{ matrix.php }} - install-path: "./bin" - pm-version-major: "5" - - - uses: "ramsey/composer-install@v2" - with: - working-directory: "vendor-bin/box" - - - name: Build PHAR file - run: composer run-script build - - - uses: actions/upload-artifact@v3 - with: - name: oh-my-pmmp +name: Build PHAR + +on: + push: + +jobs: + build-phar: + name: Build PHAR + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + php: ["8.1"] + + steps: + - uses: actions/checkout@v4 + + - name: Setup PHP + uses: pmmp/setup-php-action@2.0.0 + with: + php-version: ${{ matrix.php }} + install-path: "./bin" + pm-version-major: "5" + + - uses: "ramsey/composer-install@v2" + with: + working-directory: "vendor-bin/box" + composer-options: "--ignore-platform-reqs --optimize-autoloader" + + - name: Build PHAR file + run: composer run-script build + + - uses: actions/upload-artifact@v3 + with: + name: oh-my-pmmp path: oh-my-pmmp.phar \ No newline at end of file