mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Switch asan build to Ubuntu 23.04 in Docker
Closes GH-12034
This commit is contained in:
parent
94e26dc895
commit
c9e5e1fc52
3 changed files with 32 additions and 7 deletions
18
.github/actions/apt-x64/action.yml
vendored
18
.github/actions/apt-x64/action.yml
vendored
|
@ -6,8 +6,21 @@ runs:
|
||||||
run: |
|
run: |
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
sudo apt-get update
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
sudo apt-get install \
|
|
||||||
|
# Install sudo in Docker for consistent actions
|
||||||
|
if ! type "sudo" > /dev/null; then
|
||||||
|
apt-get update -y | true
|
||||||
|
apt-get install -y sudo
|
||||||
|
fi
|
||||||
|
|
||||||
|
sudo apt-get update -y | true
|
||||||
|
sudo apt-get install -y \
|
||||||
|
autoconf \
|
||||||
|
gcc \
|
||||||
|
make \
|
||||||
|
curl \
|
||||||
|
unzip \
|
||||||
bison \
|
bison \
|
||||||
re2c \
|
re2c \
|
||||||
locales \
|
locales \
|
||||||
|
@ -20,6 +33,7 @@ runs:
|
||||||
libtidy-dev \
|
libtidy-dev \
|
||||||
libenchant-2-dev \
|
libenchant-2-dev \
|
||||||
libaspell-dev \
|
libaspell-dev \
|
||||||
|
libbz2-dev \
|
||||||
libpspell-dev \
|
libpspell-dev \
|
||||||
libsasl2-dev \
|
libsasl2-dev \
|
||||||
libxpm-dev \
|
libxpm-dev \
|
||||||
|
|
18
.github/workflows/push.yml
vendored
18
.github/workflows/push.yml
vendored
|
@ -37,12 +37,21 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
LINUX_X64:
|
LINUX_X64:
|
||||||
services:
|
services:
|
||||||
|
mysql:
|
||||||
|
image: mysql:8
|
||||||
|
env:
|
||||||
|
MYSQL_DATABASE: test
|
||||||
|
MYSQL_ROOT_PASSWORD: root
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres
|
image: postgres
|
||||||
env:
|
env:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
POSTGRES_DB: test
|
POSTGRES_DB: test
|
||||||
|
env:
|
||||||
|
MYSQL_TEST_HOST: mysql
|
||||||
|
PDO_MYSQL_TEST_DSN: mysql:host=mysql;dbname=test
|
||||||
|
PDO_MYSQL_TEST_HOST: mysql
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -55,18 +64,21 @@ jobs:
|
||||||
asan: true
|
asan: true
|
||||||
name: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}${{ matrix.asan && '_ASAN' || '' }}"
|
name: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}${{ matrix.asan && '_ASAN' || '' }}"
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
container:
|
||||||
|
image: ${{ matrix.asan && 'ubuntu:23.04' || null }}
|
||||||
steps:
|
steps:
|
||||||
- name: git checkout
|
- name: git checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
- name: apt
|
||||||
|
uses: ./.github/actions/apt-x64
|
||||||
- name: Create MSSQL container
|
- name: Create MSSQL container
|
||||||
|
if: ${{ !matrix.asan }}
|
||||||
uses: ./.github/actions/setup-mssql
|
uses: ./.github/actions/setup-mssql
|
||||||
- name: Create Oracle container
|
- name: Create Oracle container
|
||||||
if: ${{ !matrix.asan }}
|
if: ${{ !matrix.asan }}
|
||||||
uses: ./.github/actions/setup-oracle
|
uses: ./.github/actions/setup-oracle
|
||||||
- name: Setup Caddy server
|
- name: Setup Caddy server
|
||||||
uses: ./.github/actions/setup-caddy
|
uses: ./.github/actions/setup-caddy
|
||||||
- name: apt
|
|
||||||
uses: ./.github/actions/apt-x64
|
|
||||||
- name: ccache
|
- name: ccache
|
||||||
uses: hendrikmuhs/ccache-action@v1.2
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
with:
|
with:
|
||||||
|
@ -88,6 +100,7 @@ jobs:
|
||||||
- name: make install
|
- name: make install
|
||||||
uses: ./.github/actions/install-linux
|
uses: ./.github/actions/install-linux
|
||||||
- name: Setup
|
- name: Setup
|
||||||
|
if: ${{ !matrix.asan }}
|
||||||
uses: ./.github/actions/setup-x64
|
uses: ./.github/actions/setup-x64
|
||||||
- name: Test
|
- name: Test
|
||||||
if: matrix.asan == false
|
if: matrix.asan == false
|
||||||
|
@ -104,6 +117,7 @@ jobs:
|
||||||
${{ !matrix.asan && '-d opcache.jit_buffer_size=16M' || '' }}
|
${{ !matrix.asan && '-d opcache.jit_buffer_size=16M' || '' }}
|
||||||
${{ matrix.asan && '--asan -x' || '' }}
|
${{ matrix.asan && '--asan -x' || '' }}
|
||||||
- name: Verify generated files are up to date
|
- name: Verify generated files are up to date
|
||||||
|
if: ${{ !matrix.asan }}
|
||||||
uses: ./.github/actions/verify-generated-files
|
uses: ./.github/actions/verify-generated-files
|
||||||
MACOS_DEBUG_NTS:
|
MACOS_DEBUG_NTS:
|
||||||
runs-on: macos-11
|
runs-on: macos-11
|
||||||
|
|
|
@ -2,9 +2,6 @@
|
||||||
Extension loading
|
Extension loading
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php
|
<?php
|
||||||
if (getenv('SKIP_ASAN')) {
|
|
||||||
die('xleak LSAN bug on Clang 14 crashes this test');
|
|
||||||
}
|
|
||||||
$extDir = ini_get('extension_dir');
|
$extDir = ini_get('extension_dir');
|
||||||
if (!file_exists($extDir . '/opcache.so') && !file_exists($extDir . '/php_opcache.dll')) {
|
if (!file_exists($extDir . '/opcache.so') && !file_exists($extDir . '/php_opcache.dll')) {
|
||||||
die('skip Opcache shared object not found in extension_dir');
|
die('skip Opcache shared object not found in extension_dir');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue