CI #308
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
schedule: | |
- cron: '0 0 * * 1' | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
Linux: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
platform: ['linux/amd64', 'linux/arm64/v8', 'linux/s390x'] | |
version: ['8.1', '8.2', '8.3', '8.4'] | |
type: ['cli', 'zts'] | |
distro: ['bookworm', 'alpine'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: "arm64,s390x" | |
- name: Setup buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build container | |
run: | | |
docker compose build --pull --no-cache --build-arg PLATFORM="${{ matrix.platform }}" --build-arg IMAGE="php" --build-arg TAG="${{ matrix.version }}-${{ matrix.type }}-${{ matrix.distro }}" | |
- name: Test extension with Bundled PHP + PHP library test | |
run: | | |
docker compose run --rm shell library_test | |
- name: Test extension with PHP Debug Build | |
if: matrix.platform == 'linux/amd64' | |
run: | | |
docker compose run --rm shell pskel test debug | |
- name: Test extension with Valgrind | |
if: matrix.platform == 'linux/amd64' | |
run: | | |
docker compose run --rm shell pskel test valgrind | |
- name: Test extension with LLVM Sanitizer (MemorySanitizer) | |
if: matrix.platform == 'linux/amd64' && matrix.distro != 'alpine' | |
run: | | |
docker compose run --rm shell pskel test msan | |
- name: Test extension with LLVM Sanitizer (AddressSanitizer) | |
if: matrix.platform == 'linux/amd64' && matrix.distro != 'alpine' | |
run: | | |
docker compose run --rm shell pskel test asan | |
- name: Test extension with LLVM Sanitizer (UndefinedBehaviorSanitizer) | |
if: matrix.platform == 'linux/amd64' && matrix.distro != 'alpine' | |
run: | | |
docker compose run --rm shell pskel test ubsan |