Skip to content

Commit

Permalink
Update action
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot committed Sep 11, 2024
1 parent af7d610 commit d3ca5fd
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit d3ca5fd

Please sign in to comment.