mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Print host CPU and installed package info in CI build log on Linux
On one of the nightly CI builds last week, there were test failures in mbstring which appear like they might be related to SIMD-accelerated code. The function which failed testing has multiple implementations, and the specific implementation which is used depends on the features of the host CPU and the build configuration. The CI build log does not offer any clues about what implementation was actually used when the tests failed. If the same thing happens again, it will be helpful to (at least) know what CPU features the host CPU supports. This will also be helpful when diagnosing any other CI build failures which relate to CPU-specific code (or those which related to external packages such as ICU). It would be better to print even more information about the build configuration. It would also be better to print host CPU information on Windows CI builds as well.
This commit is contained in:
16
.github/workflows/nightly.yml
vendored
16
.github/workflows/nightly.yml
vendored
@@ -72,6 +72,14 @@ jobs:
|
||||
uses: ./.github/actions/setup-oracle
|
||||
- name: apt
|
||||
uses: ./.github/actions/apt-x64
|
||||
- name: System info
|
||||
run: |
|
||||
echo "::group::Show host CPU info"
|
||||
lscpu
|
||||
echo "::endgroup::"
|
||||
echo "::group::Show installed package versions"
|
||||
dpkg -l
|
||||
echo "::endgroup::"
|
||||
- name: ./configure
|
||||
uses: ./.github/actions/configure-x64
|
||||
with:
|
||||
@@ -160,6 +168,14 @@ jobs:
|
||||
ref: ${{ matrix.branch.ref }}
|
||||
- name: apt
|
||||
uses: ./.github/actions/apt-x32
|
||||
- name: System info
|
||||
run: |
|
||||
echo "::group::Show host CPU info"
|
||||
lscpu
|
||||
echo "::endgroup::"
|
||||
echo "::group::Show installed package versions"
|
||||
dpkg -l
|
||||
echo "::endgroup::"
|
||||
- name: ./configure
|
||||
uses: ./.github/actions/configure-x32
|
||||
with:
|
||||
|
||||
8
.github/workflows/push.yml
vendored
8
.github/workflows/push.yml
vendored
@@ -71,6 +71,14 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
- name: apt
|
||||
uses: ./.github/actions/apt-x64
|
||||
- name: System info
|
||||
run: |
|
||||
echo "::group::Show host CPU info"
|
||||
lscpu
|
||||
echo "::endgroup::"
|
||||
echo "::group::Show installed package versions"
|
||||
dpkg -l
|
||||
echo "::endgroup::"
|
||||
- name: Create MSSQL container
|
||||
if: ${{ !matrix.asan }}
|
||||
uses: ./.github/actions/setup-mssql
|
||||
|
||||
Reference in New Issue
Block a user