From 6b96feb538b55ac7223813c22448d0546cc8e4a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Mon, 22 Apr 2024 09:58:08 +0200 Subject: [PATCH] fix: use C++ 17 compiler for ICU (#414) * fix: use C++ 17 compiler for ICU * wip * hack CXX env var to force C++17 * test intl * test intl * add retry for CI test download * patch * separate intl with newer icu c++ patch --------- Co-authored-by: crazywhalecc --- .github/workflows/tests.yml | 2 +- src/SPC/builder/extension/intl.php | 26 ++++++++++++++++++++++++++ src/SPC/builder/linux/library/icu.php | 2 +- src/globals/test-extensions.php | 2 +- 4 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 src/SPC/builder/extension/intl.php diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2eda9ad3b..83ae9cc9b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -165,7 +165,7 @@ jobs: max_attempts: 3 retry_on: error command: | - bin/spc download --for-extensions="$(php src/globals/test-extensions.php extensions)" --for-libs="$(php src/globals/test-extensions.php libs)" --with-php=${{ matrix.php }} --ignore-cache-sources=php-src --debug + bin/spc download --for-extensions="$(php src/globals/test-extensions.php extensions)" --for-libs="$(php src/globals/test-extensions.php libs)" --with-php=${{ matrix.php }} --ignore-cache-sources=php-src --debug --retry=3 - name: "Run Build Tests (build)" run: bin/spc build "$(php src/globals/test-extensions.php extensions)" --with-libs="$(php src/globals/test-extensions.php libs)" --build-cli --build-micro --build-fpm --debug diff --git a/src/SPC/builder/extension/intl.php b/src/SPC/builder/extension/intl.php new file mode 100644 index 000000000..8130b5d34 --- /dev/null +++ b/src/SPC/builder/extension/intl.php @@ -0,0 +1,26 @@ +cd($this->source_dir . '/source') ->exec( diff --git a/src/globals/test-extensions.php b/src/globals/test-extensions.php index c7127f0d3..3aae34b14 100644 --- a/src/globals/test-extensions.php +++ b/src/globals/test-extensions.php @@ -13,7 +13,7 @@ // If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`). $extensions = match (PHP_OS_FAMILY) { - 'Linux', 'Darwin' => 'uuid', + 'Linux', 'Darwin' => 'intl,posix', 'Windows' => 'mbstring,pdo_sqlite,mbregex', };