Bump googletest from 79219e2
to f3c355f
#1236
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Build & Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [assigned, opened, synchronize, reopened] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
strategy: | |
matrix: | |
include: | |
# macOS builds | |
# ~~~~~~~~~~~~ | |
- name: macOS-13/Xcode/Debug | |
build_type: Debug | |
generator: Xcode | |
os: macos-13 | |
package: TGZ | |
- name: macOS-13/Xcode/Release | |
build_type: Release | |
generator: Xcode | |
os: macos-13 | |
package: TGZ | |
- name: macOS-14/Xcode/Debug | |
build_type: Debug | |
generator: Xcode | |
os: macos-14 | |
package: TGZ | |
- name: macOS-14/Xcode/Release | |
build_type: Release | |
generator: Xcode | |
os: macos-14 | |
package: TGZ | |
# Ubuntu builds | |
# ~~~~~~~~~~~~~ | |
- name: Ubuntu-22.04/gcc-11/Release | |
apt_install: ninja-build | |
build_type: Release | |
cxx_compiler: -D CMAKE_CXX_COMPILER=g++-11 -D CMAKE_C_COMPILER=gcc-11 | |
options: -D ICUBABY_SANITIZE=Yes | |
generator: Ninja | |
os: ubuntu-22.04 | |
package: TGZ | |
- name: Ubuntu-22.04/gcc-13/Debug | |
apt_install: ninja-build | |
build_type: Debug | |
cxx_compiler: -D CMAKE_CXX_COMPILER=g++-13 -D CMAKE_C_COMPILER=gcc-13 | |
gcc_install: 13 | |
options: -D ICUBABY_SANITIZE=Yes | |
generator: Unix Makefiles | |
os: ubuntu-22.04 | |
package: TGZ | |
- name: Ubuntu-22.04/gcc-13/RelWithDebug/Sanitizers | |
apt_install: ninja-build | |
build_type: RelWithDebug | |
cxx_compiler: -D CMAKE_CXX_COMPILER=g++-13 -D CMAKE_C_COMPILER=gcc-13 | |
gcc_install: 13 | |
options: -D ICUBABY_SANITIZE=Yes | |
generator: Unix Makefiles | |
os: ubuntu-22.04 | |
package: TGZ | |
- name: Ubuntu-22.04/gcc-13/Release | |
apt_install: ninja-build | |
build_type: Release | |
cxx_compiler: -D CMAKE_CXX_COMPILER=g++-13 -D CMAKE_C_COMPILER=gcc-13 | |
gcc_install: 13 | |
generator: Unix Makefiles | |
os: ubuntu-22.04 | |
package: TGZ | |
- name: Ubuntu-22.04/clang-16/Debug | |
apt_install: cmake ninja-build | |
llvm_install: 16 | |
build_type: Debug | |
cxx_compiler: -D CMAKE_CXX_COMPILER=clang++-16 -D CMAKE_C_COMPILER=clang-16 | |
generator: Ninja | |
options: -D ICUBABY_SANITIZE=Yes | |
os: ubuntu-22.04 | |
package: TGZ | |
- name: Ubuntu-22.04/clang-16/Release | |
apt_install: cmake ninja-build | |
llvm_install: 16 | |
build_type: Release | |
cxx_compiler: -D CMAKE_CXX_COMPILER=clang++-16 -D CMAKE_C_COMPILER=clang-16 | |
generator: Ninja | |
options: | |
os: ubuntu-22.04 | |
package: TGZ | |
- name: Ubuntu-22.04/clang-18/Debug | |
apt_install: cmake ninja-build | |
llvm_install: 18 | |
build_type: Debug | |
cxx_compiler: -D CMAKE_CXX_COMPILER=clang++-18 -D CMAKE_C_COMPILER=clang-18 | |
generator: Ninja | |
options: -D ICUBABY_SANITIZE=Yes | |
os: ubuntu-22.04 | |
package: TGZ | |
- name: Ubuntu-22.04/clang-18/Release | |
apt_install: cmake ninja-build | |
llvm_install: 18 | |
build_type: Release | |
cxx_compiler: -D CMAKE_CXX_COMPILER=clang++-18 -D CMAKE_C_COMPILER=clang-18 | |
generator: Ninja | |
options: | |
os: ubuntu-22.04 | |
package: TGZ | |
- name: Ubuntu-22.04/clang-14/Release/C++17 | |
apt_install: cmake clang-14 libc++-dev libc++abi-dev ninja-build | |
build_type: Release | |
cxx_compiler: -D CMAKE_CXX_COMPILER=clang++-14 -D CMAKE_C_COMPILER=clang-14 | |
generator: Ninja | |
options: -D ICUBABY_CXX17=Yes -D ICUBABY_LIBCXX=Yes | |
os: ubuntu-22.04 | |
package: TGZ | |
# Windows builds | |
# ~~~~~~~~~~~~~~ | |
- name: Windows-latest/VS2022/Debug | |
build_type: Debug | |
generator: Visual Studio 17 2022 | |
os: windows-latest | |
package: ZIP | |
- name: Windows-latest/VS2022/Release | |
build_type: Release | |
generator: Visual Studio 17 2022 | |
os: windows-latest | |
package: ZIP | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
submodules: 'True' | |
- name: Install Dependencies (Linux) | |
if: startsWith (matrix.os, 'ubuntu-') && matrix.apt_install != '' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y ${{ matrix.apt_install }} | |
- name: Install Dependencies (GCC) | |
if: matrix.gcc_install != '' | |
run: | | |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | |
sudo apt install -y "g++-${{ matrix.gcc_install }}" \ | |
"libstdc++-${{ matrix.gcc_install }}-dev" | |
- name: Install Dependencies (LLVM) | |
if: matrix.llvm_install != '' | |
uses: paulhuggett/install-llvm@ad897b4b1cf03f54c1218ec6d97a23ff4b10b870 # v1.0 | |
with: | |
version: ${{matrix.llvm_install}} | |
- name: Create Build Environment | |
shell: bash | |
run: cmake -E make_directory ${{ github.workspace }}/build | |
- name: CMake Configure | |
shell: bash | |
run: | | |
cmake -S "${{ github.workspace }}" \ | |
-B "${{ github.workspace }}/build" \ | |
-G "${{ matrix.generator }}" \ | |
-D CMAKE_BUILD_TYPE=${{ matrix.build_type }} \ | |
-D ICUBABY_EXAMPLES=Yes \ | |
-D ICUBABY_STANDALONE=Yes \ | |
-D ICUBABY_WERROR=Yes \ | |
${{ matrix.cxx_compiler }} \ | |
${{ matrix.options }} | |
- name: Build | |
shell: bash | |
run: cmake --build "${{ github.workspace }}/build" --config ${{ matrix.build_type }} --verbose |