mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 17:58:09 +08:00
feat: Merge branch 'main' into perf-scanner-cache
This commit is contained in:
37
.github/workflows/main.yml
vendored
37
.github/workflows/main.yml
vendored
@@ -33,6 +33,43 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
ctest --output-on-failure --test-dir build/
|
ctest --output-on-failure --test-dir build/
|
||||||
|
|
||||||
|
build-linux-gcc-sanitizers:
|
||||||
|
runs-on: Ubuntu-22.04
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
compiler: ['g++-12']
|
||||||
|
standard: ['11', '14', '17', '20']
|
||||||
|
precompile: ['ON', 'OFF']
|
||||||
|
betafeature: ['ON', 'OFF']
|
||||||
|
asan: ['ON', 'OFF']
|
||||||
|
ubsan: ['ON', 'OFF']
|
||||||
|
exclude:
|
||||||
|
- asan: 'ON'
|
||||||
|
ubsan: 'ON'
|
||||||
|
steps:
|
||||||
|
- name: Get number of CPU cores
|
||||||
|
uses: SimenB/github-actions-cpu-cores@v2
|
||||||
|
id: cpu-cores
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- name: Install
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install language-pack-fr # test serializer w/ locale
|
||||||
|
sudo apt-get install ${{ matrix.compiler }}
|
||||||
|
- name: Configure
|
||||||
|
run: |
|
||||||
|
cmake -B build/ -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_BUILD_TESTS=ON -DTOML11_PRECOMPILE=${{ matrix.precompile }} -DTOML11_ENABLE_ACCESS_CHECK=${{ matrix.betafeature }} -DTOML11_TEST_WITH_ASAN=${{ matrix.asan }} -DTOML11_TEST_WITH_UBSAN=${{ matrix.ubsan }}
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
cmake --build build/ -j${{ steps.cpu-cores.outputs.count }}
|
||||||
|
- name: Test
|
||||||
|
run: |
|
||||||
|
ctest --output-on-failure --test-dir build/
|
||||||
|
|
||||||
build-linux-clang:
|
build-linux-clang:
|
||||||
runs-on: Ubuntu-22.04
|
runs-on: Ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
|
7
.github/workflows/toml-test.yml
vendored
7
.github/workflows/toml-test.yml
vendored
@@ -9,6 +9,11 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
compiler: ['g++-12']
|
compiler: ['g++-12']
|
||||||
standard: ['11', '14', '17', '20']
|
standard: ['11', '14', '17', '20']
|
||||||
|
asan: ['ON', 'OFF']
|
||||||
|
ubsan: ['ON', 'OFF']
|
||||||
|
exclude:
|
||||||
|
- asan: 'ON'
|
||||||
|
ubsan: 'ON'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -22,7 +27,7 @@ jobs:
|
|||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
cmake -B build/ -DBUILD_TESTING=OFF -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_BUILD_TOML_TESTS=ON
|
cmake -B build/ -DBUILD_TESTING=OFF -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_BUILD_TOML_TESTS=ON -DTOML11_TEST_WITH_ASAN=${{ matrix.asan }} -DTOML11_TEST_WITH_UBSAN=${{ matrix.ubsan }}
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake --build build/
|
cmake --build build/
|
||||||
|
Reference in New Issue
Block a user