Skip to content

Commit

Permalink
Merge branch 'main' into azure-job-by-code-type
Browse files Browse the repository at this point in the history
  • Loading branch information
rp9-next committed Feb 16, 2024
2 parents b9a367f + 90b2eed commit d307794
Show file tree
Hide file tree
Showing 7,289 changed files with 9,462 additions and 10,964 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
28 changes: 28 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# © 2024 and later: Unicode, Inc. and others.
# License & terms of use: http://www.unicode.org/copyright.html

# By default, build ICU4C as C11 & C++17.

build --enable_platform_specific_config

build:android --conlyopt=-std=c11
build:android --host_conlyopt=-std=c11
build:ios --conlyopt=-std=c11
build:ios --host_conlyopt=-std=c11
build:linux --conlyopt=-std=c11
build:linux --host_conlyopt=-std=c11
build:macos --conlyopt=-std=c11
build:macos --host_conlyopt=-std=c11
build:windows --conlyopt=/std:c11
build:windows --host_conlyopt=/std:c11

build:android --cxxopt=-std=c++17
build:android --host_cxxopt=-std=c++17
build:ios --cxxopt=-std=c++17
build:ios --host_cxxopt=-std=c++17
build:linux --cxxopt=-std=c++17
build:linux --host_cxxopt=-std=c++17
build:macos --cxxopt=-std=c++17
build:macos --host_cxxopt=-std=c++17
build:windows --cxxopt=/std:c++17
build:windows --host_cxxopt=/std:c++17
116 changes: 29 additions & 87 deletions .ci-builds/.azure-pipelines-icu4c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
CC: clang
CXX: clang++
#-------------------------------------------------------------------------
- job: ICU4C_Clang_Cpp14_Debug_Ubuntu_2204
- job: ICU4C_Clang_Cpp17_Debug_Ubuntu_2204
displayName: 'C: Linux Clang C++17 Debug (Ubuntu 22.04)'
timeoutInMinutes: 30
pool:
Expand Down Expand Up @@ -128,78 +128,78 @@ jobs:
CXX: clang++
LANG: "en_US@calendar=gregorian;hours=h12"
#-------------------------------------------------------------------------
- job: ICU4C_Clang14_Ubuntu_2004_WarningsAsErrors
displayName: 'C: Linux Clang-14 WarningsAsErrors (Ubuntu 20.04)'
- job: ICU4C_Clang16_Ubuntu_2004_WarningsAsErrors
displayName: 'C: Linux Clang-16 WarningsAsErrors (Ubuntu 20.04)'
timeoutInMinutes: 30
pool:
vmImage: 'ubuntu-20.04'
steps:
- checkout: self
lfs: true
fetchDepth: 10
# Install Clang-14 from https://apt.llvm.org/
# Install Clang-16 from https://apt.llvm.org/
- script: |
curl -Ls https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-14 main'
sudo apt-add-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main'
sudo apt update
sudo apt install -qy clang-14 lld-14 libc++-14-dev libc++abi-14-dev
displayName: 'Install Clang-14'
sudo apt install -qy clang-16 lld-16 libc++-16-dev libc++abi-16-dev
displayName: 'Install Clang-16'
- script: |
cd icu4c/source && ./runConfigureICU Linux && make -j -l2.5 tests
displayName: 'Build only (WarningsAsErrors)'
env:
CC: clang-14
CPPFLAGS: '-Werror -Wall -Wextra -Wextra-semi -Wundef -Wnon-virtual-dtor -Wsuggest-override'
CXX: clang++-14
CC: clang-16
CPPFLAGS: '-Werror -Wno-strict-prototypes -Wall -Wextra -Wextra-semi -Wundef -Wnon-virtual-dtor -Wsuggest-override'
CXX: clang++-16
#-------------------------------------------------------------------------
- job: ICU4C_Clang14_Cpp20_Ubuntu_2004
displayName: 'C: Linux Clang-14 C++20 (Ubuntu 20.04)'
- job: ICU4C_Clang16_Cpp20_Ubuntu_2004
displayName: 'C: Linux Clang-16 C++20 (Ubuntu 20.04)'
timeoutInMinutes: 30
pool:
vmImage: 'ubuntu-20.04'
steps:
- checkout: self
lfs: true
fetchDepth: 10
# Install Clang-14 from https://apt.llvm.org/
# Install Clang-16 from https://apt.llvm.org/
- script: |
curl -Ls https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-14 main'
sudo apt-add-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main'
sudo apt update
sudo apt install -qy clang-14 lld-14 libc++-14-dev libc++abi-14-dev
displayName: 'Install Clang-14'
sudo apt install -qy clang-16 lld-16 libc++-16-dev libc++abi-16-dev
displayName: 'Install Clang-16'
- script: |
cd icu4c/source && ./runConfigureICU Linux && make -j -l2.5 check
displayName: 'Build and Test'
env:
CC: clang-14
CPPFLAGS: '-Werror'
CXX: clang++-14
CC: clang-16
CPPFLAGS: '-Werror -Wno-strict-prototypes'
CXX: clang++-16
CXXFLAGS: '-std=c++20'
#-------------------------------------------------------------------------
- job: ICU4C_Clang14_Cpp20_libcpp_Ubuntu_2004
displayName: 'C: Linux Clang-14 C++20 libc++ (Ubuntu 20.04)'
- job: ICU4C_Clang16_Cpp20_libcpp_Ubuntu_2004
displayName: 'C: Linux Clang-16 C++20 libc++ (Ubuntu 20.04)'
timeoutInMinutes: 30
pool:
vmImage: 'ubuntu-20.04'
steps:
- checkout: self
lfs: true
fetchDepth: 10
# Install Clang-14 from https://apt.llvm.org/
# Install Clang-16 from https://apt.llvm.org/
- script: |
curl -Ls https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-14 main'
sudo apt-add-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main'
sudo apt update
sudo apt install -qy clang-14 lld-14 libc++-14-dev libc++abi-14-dev
displayName: 'Install Clang-14'
sudo apt install -qy clang-16 lld-16 libc++-16-dev libc++abi-16-dev
displayName: 'Install Clang-16'
- script: |
cd icu4c/source && ./runConfigureICU Linux && make -j -l2.5 check
displayName: 'Build and Test'
env:
CC: clang-14
CPPFLAGS: '-Werror'
CXX: clang++-14
CC: clang-16
CPPFLAGS: '-Werror -Wno-strict-prototypes'
CXX: clang++-16
CXXFLAGS: '-std=c++20 -stdlib=libc++'
#-------------------------------------------------------------------------
# VS 2022 Builds
Expand Down Expand Up @@ -495,62 +495,6 @@ jobs:
filename: icu4c/source/allinone/icucheck.bat
arguments: 'x86 Debug'
#-------------------------------------------------------------------------
# VS2019 using the VS2017 toolset builds
#-------------------------------------------------------------------------
- job: ICU4C_MSVC_x64_Release_VS2017
displayName: 'C: MSVC 64-bit Release (VS 2017)'
timeoutInMinutes: 30
pool:
vmImage: 'windows-2019'
demands:
- msbuild
- visualstudio
- Cmd
steps:
- checkout: self
lfs: true
fetchDepth: 10
- task: VSBuild@1
displayName: 'Build Solution'
inputs:
solution: icu4c/source/allinone/allinone.sln
platform: x64
configuration: Release
msbuildArgs: /p:DefaultPlatformToolset=v141
- task: BatchScript@1
displayName: 'Run Tests (icucheck.bat)'
inputs:
filename: icu4c/source/allinone/icucheck.bat
arguments: 'x64 Release'
#-------------------------------------------------------------------------
# VS2019 using the VS2015 toolset
#-------------------------------------------------------------------------
- job: ICU4C_MSVC_x64_Release_VS2015
displayName: 'C: MSVC 64-bit Release (VS 2015)'
timeoutInMinutes: 30
pool:
vmImage: 'windows-2019'
demands:
- msbuild
- visualstudio
- Cmd
steps:
- checkout: self
lfs: true
fetchDepth: 10
- task: VSBuild@1
displayName: 'Build Solution'
inputs:
solution: icu4c/source/allinone/allinone.sln
platform: x64
configuration: Release
msbuildArgs: /p:SkipUWP=true /p:DefaultPlatformToolset=v140 /p:AutodetectWin10SDK=true
- task: BatchScript@1
displayName: 'Run Tests (icucheck.bat)'
inputs:
filename: icu4c/source/allinone/icucheck.bat
arguments: 'x64 Release'
#-------------------------------------------------------------------------
- job: ICU4C_MSYS2_GCC_x86_64_Release
displayName: 'C: MSYS2 GCC x86_64 Release'
timeoutInMinutes: 45
Expand Down Expand Up @@ -729,9 +673,7 @@ jobs:
mkdir -p icuexportdata/segmenter/dictionary
for FILE in `ls data/brkitr/dictionaries`
do
./bin/gendict --uchars data/brkitr/dictionaries/$FILE /dev/stdout | \
python3 -c 'import sys; data = sys.stdin.buffer.read(); print(f"trie_data = {[data[i + 1] << 8 | data[i] for i in range(64, len(data) - 1, 2)]}")' \
> icuexportdata/segmenter/dictionary/`basename $FILE .txt`.toml
./bin/gendict --uchars --toml data/brkitr/dictionaries/$FILE icuexportdata/segmenter/dictionary/`basename $FILE .txt`.toml
done
displayName: 'Build segmenter dictionary files'
env:
Expand Down
Loading

0 comments on commit d307794

Please sign in to comment.