Restore some strings for non-constexpr context #126
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: Build and test | |
on: push | |
jobs: | |
build-linux: | |
name: Build ${{ matrix.os }} ${{ matrix.build_type }} with ${{ matrix.preset }} | |
strategy: | |
matrix: | |
os: [ubuntu-24.04] | |
build_type: [Debug, Release] | |
preset: [gcc-14, clang-18] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Restore cache | |
uses: actions/cache@v3 | |
id: vcpkg-cache-linux | |
with: | |
path: ~/.cache/vcpkg | |
key: ${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.preset }}-${{ hashFiles('**/vcpkg.json', '**/CMakePresets.json') }} | |
- name: Install system dependencies | |
run: | | |
sudo apt update || exit $? | |
sudo apt -y install ninja-build libc++-18-dev libc++abi-18-dev || exit $? | |
- name: Configure | |
run: | | |
cmake -S . -B cmake-build --preset ${{ matrix.preset }} \ | |
-DFL_DEV=ON \ | |
-DFL_TEST=ON \ | |
-DFL_BENCHMARK=ON \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ | |
-DCMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake || exit $? | |
- name: Build | |
run: | | |
cmake --build cmake-build --parallel --config ${{ matrix.build_type }} || exit $? | |
- name: Test | |
run: ctest -E "benchmark$" --test-dir "cmake-build" || exit $? | |
- name: Benchmark | |
if: ${{ matrix.build_type == 'Release' }} | |
run: ctest -R "benchmark$" --test-dir "cmake-build" || exit $? | |
build-mac: | |
name: Build ${{ matrix.os }} ${{ matrix.build_type }} with ${{ matrix.preset }} | |
if: false | |
strategy: | |
matrix: | |
os: [macos-14] | |
build_type: [Debug, Release] | |
preset: [system-clang] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Restore cache | |
uses: actions/cache@v3 | |
id: vcpkg-cache-macos | |
with: | |
path: ~/.cache/vcpkg | |
key: ${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.preset }}-${{ hashFiles('**/vcpkg.json', '**/CMakePresets.json') }} | |
- name: Install system dependencies | |
run: | | |
brew install ninja || exit $? | |
brew install pkg-config || exit $? | |
brew install autoconf || exit $? | |
brew install autoconf-archive || exit $? | |
brew install automake || exit $? | |
brew install make || exit $? | |
brew install libtool || exit $? | |
- name: Get vcpkg | |
run: | | |
export VCPKG_INSTALLATION_ROOT="$HOME/vcpkg" | |
git clone https://github.com/microsoft/vcpkg "$VCPKG_INSTALLATION_ROOT" | |
"$VCPKG_INSTALLATION_ROOT/bootstrap-vcpkg.sh" | |
echo "vcpkg_installation_root=$VCPKG_INSTALLATION_ROOT" >> $GITHUB_ENV | |
- name: Configure | |
run: | | |
cmake -S . -B cmake-build --preset ${{ matrix.preset }} \ | |
-DFL_DEV=ON \ | |
-DFL_TEST=ON \ | |
-DFL_BENCHMARK=ON \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ | |
-DCMAKE_TOOLCHAIN_FILE="${{ env.vcpkg_installation_root }}/scripts/buildsystems/vcpkg.cmake" || exit $? | |
- name: Build | |
run: | | |
cmake --build cmake-build --parallel --config ${{ matrix.build_type }} || exit $? | |
- name: Test | |
run: ctest -E "benchmark$" --test-dir "cmake-build" || exit $? | |
- name: Benchmark | |
if: ${{ matrix.build_type == 'Release' }} | |
run: ctest -R "benchmark$" --test-dir "cmake-build" || exit $? | |
build-windows: | |
name: Build ${{ matrix.os }} ${{ matrix.build_type }} with ${{ matrix.preset }} | |
strategy: | |
matrix: | |
os: [windows-2022] | |
build_type: [Debug, Release] | |
preset: [msvc-system] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Save vcpkg env vars | |
shell: powershell | |
run: | | |
"vcpkg_root=$env:VCPKG_INSTALLATION_ROOT" >> $env:GITHUB_ENV | |
"vcpkg_cache=$env:LOCALAPPDATA\vcpkg\" >> $env:GITHUB_ENV | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Restore cache | |
uses: actions/cache@v3 | |
id: vcpkg-cache-windows | |
with: | |
path: ${{ env.vcpkg_cache }} | |
key: ${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.preset }}-${{ hashFiles('**/vcpkg.json', '**/CMakePresets.json') }} | |
- name: Install system dependencies | |
shell: powershell | |
run: choco install ninja -y | |
- name: Configure | |
shell: powershell | |
run: | | |
& 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\Launch-VsDevShell.ps1' -SkipAutomaticLocation | |
cmake -S . -B cmake-build --preset ${{ matrix.preset }} ` | |
-DFL_DEV=ON ` | |
-DFL_TEST=ON ` | |
-DFL_BENCHMARK=ON ` | |
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ` | |
-DCMAKE_TOOLCHAIN_FILE=${{ env.vcpkg_root }}\scripts\buildsystems\vcpkg.cmake | |
- name: Build | |
shell: powershell | |
run: | | |
& 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\Launch-VsDevShell.ps1' -SkipAutomaticLocation | |
cmake --build cmake-build --parallel --config ${{ matrix.build_type }} | |
- name: Test | |
shell: powershell | |
run: ctest -E "benchmark$" --test-dir "cmake-build" | |
- name: Benchmark | |
if: ${{ matrix.build_type == 'Release' }} | |
shell: powershell | |
run: ctest -R "benchmark$" --test-dir "cmake-build" |