update string unit tests to cover fully filled buffer and buffer_view… #58
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: Platform GNU/Linux | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
name: ${{ matrix.config.name }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- name: "Ubuntu Latest with GCC 12" | |
compiler: gcc | |
compiler_ver: 12 | |
- name: "Ubuntu Latests with Clang 15" | |
compiler: clang | |
compiler_ver: 15 | |
steps: | |
- name: Prepare specific Clang version | |
if: ${{ matrix.config.compiler == 'clang' }} | |
run: | | |
sudo apt install clang-${{ matrix.config.compiler_ver}} | |
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-${{ matrix.config.compiler_ver}} 100 | |
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-${{ matrix.config.compiler_ver}} 100 | |
- name: Prepare specific GCC version | |
if: ${{ matrix.config.compiler == 'gcc' }} | |
run: | | |
sudo apt install g++-${{ matrix.config.compiler_ver}} | |
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-${{ matrix.config.compiler_ver}} 100 | |
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-${{ matrix.config.compiler_ver}} 100 | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Configure | |
run: cmake -S . -B build -DBYTEPACK_BUILD_TESTS=ON | |
- name: Build | |
run: cmake --build build | |
- name: Run tests | |
run: | | |
cd build | |
ctest --rerun-failed --output-on-failure |