From d3ca5fd93f1d826ef3d7052f7e5ead6218f82fda Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Wed, 11 Sep 2024 09:54:04 +0200 Subject: [PATCH] Update action --- .github/workflows/main.yml | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 190078b..be0ff8a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,20 +21,15 @@ jobs: strategy: fail-fast: false matrix: - php: [ '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ] + php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ] name: - - linux - - debian - - mac + - mac-x64 + - mac-arm64 include: - # Linux - - { name: linux, ts: 'nts', compiler: 'gcc', os: ubuntu-20.04 } - # Debian (docker) - - { name: debian, ts: 'nts', compiler: 'gcc', os: ubuntu-20.04 } - # macOS - - { name: mac, ts: 'nts', compiler: 'clang', os: macos-12 } + - { name: mac-x64, ts: 'nts', compiler: 'clang', os: macos-latest-large } + - { name: mac-arm64, ts: 'nts', compiler: 'clang', os: macos-latest-xlarge } steps: - uses: actions/checkout@v3 @@ -47,14 +42,9 @@ jobs: run: | echo "spx_file_name=spx-php-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.name }}-${{ matrix.compiler }}" >> $GITHUB_OUTPUT - - name: Build extension for Ubuntu and macOS - if: matrix.name != 'debian' + - name: Build extension for macOS uses: ./.github/workflows/build-linux-mac-ext - - name: Build extension for Debian using docker - if: matrix.name == 'debian' && matrix.php != '5.4' && matrix.php != '5.5' - uses: ./.github/workflows/build-debian-ext - - name: Upload build artifacts after Failure if: failure() uses: actions/upload-artifact@v3 @@ -105,7 +95,7 @@ jobs: - name: Download SPX build artifacts id: download - uses: actions/download-artifact@v4.1.7 + uses: actions/download-artifact@v3 with: path: ./build-artifacts