Skip to content

chore(deps): update sonarsource/sonarcloud-github-c-cpp action to v3.2.0 #166

chore(deps): update sonarsource/sonarcloud-github-c-cpp action to v3.2.0

chore(deps): update sonarsource/sonarcloud-github-c-cpp action to v3.2.0 #166

Workflow file for this run

name: Build and Test
on:
push:
branches:
- "**"
workflow_dispatch:
env:
CFLAGS: "-O2 -g3 -Wall -Werror -Wno-typedef-redefinition"
jobs:
ci:
permissions:
contents: read
if: ${{ !contains(github.event.head_commit.message, '[ci skip]') || github.event_name == 'workflow_dispatch' }}
strategy:
fail-fast: false
matrix:
compiler:
- CC: clang
- CC: gcc
php:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
- '8.4'
- '8.5'
name: "Build and Test (PHP ${{ matrix.php }}, CC: ${{ matrix.compiler.CC }})"
runs-on: ubuntu-latest
steps:
- name: Check out the source code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up PHP
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # 2.32.0
with:
php-version: ${{ matrix.php }}
tools: none
- name: Build
run: phpize && ./configure CC=${{ matrix.compiler.CC }} --silent && make --silent
- name: Run tests
run: make test
env:
NO_INTERACTION: "1"
REPORT_EXIT_STATUS: "1"