Skip to content

Commit b5a0426

Browse files
arnaud-lbbukka
authored andcommitted
Add Alpine push job
1 parent 33718fb commit b5a0426

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/push.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,52 @@ env:
4040
CC: ccache gcc
4141
CXX: ccache g++
4242
jobs:
43+
ALPINE:
44+
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
45+
name: ALPINE_X64_ASAN_UBSAN_DEBUG_ZTS
46+
runs-on: ubuntu-22.04
47+
container:
48+
image: 'alpine:3.20.1'
49+
steps:
50+
- name: git checkout
51+
uses: actions/checkout@v5
52+
- name: apk
53+
uses: ./.github/actions/apk
54+
- name: LLVM 17 (ASAN-only)
55+
# libclang_rt.asan-x86_64.a is provided by compiler-rt, and only for clang17:
56+
# https://pkgs.alpinelinux.org/contents?file=libclang_rt.asan-x86_64.a&path=&name=&branch=v3.20
57+
run: |
58+
apk add clang17 compiler-rt
59+
- name: System info
60+
run: |
61+
echo "::group::Show host CPU info"
62+
lscpu
63+
echo "::endgroup::"
64+
echo "::group::Show installed package versions"
65+
apk list
66+
echo "::endgroup::"
67+
- name: ./configure
68+
uses: ./.github/actions/configure-alpine
69+
with:
70+
configurationParameters: >-
71+
CFLAGS="-fsanitize=undefined,address -fno-sanitize=function -DZEND_TRACK_ARENA_ALLOC"
72+
LDFLAGS="-fsanitize=undefined,address -fno-sanitize=function"
73+
CC=clang-17
74+
CXX=clang++-17
75+
--enable-debug
76+
--enable-zts
77+
skipSlow: true # FIXME: This should likely include slow extensions
78+
- name: make
79+
run: make -j$(/usr/bin/nproc) >/dev/null
80+
- name: make install
81+
uses: ./.github/actions/install-alpine
82+
- name: Test Tracing JIT
83+
uses: ./.github/actions/test-alpine
84+
with:
85+
jitType: tracing
86+
runTestsParameters: >-
87+
--asan -x
88+
-d opcache.enable_cli=1
4389
LINUX_X64:
4490
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
4591
services:

0 commit comments

Comments
 (0)