mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 19:10:11 +08:00
ci: run access-check only in the latest env
This commit is contained in:
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
@@ -40,7 +40,6 @@ jobs:
|
|||||||
compiler: ['15', '14', '13', '12', '11']
|
compiler: ['15', '14', '13', '12', '11']
|
||||||
standard: ['11', '14', '17', '20']
|
standard: ['11', '14', '17', '20']
|
||||||
precompile: ['ON', 'OFF']
|
precompile: ['ON', 'OFF']
|
||||||
betafeature: ['ON', 'OFF']
|
|
||||||
exclude:
|
exclude:
|
||||||
- {compiler: '14', standard: '20'} # to avoid using gcc-13 libstdc++
|
- {compiler: '14', standard: '20'} # to avoid using gcc-13 libstdc++
|
||||||
- {compiler: '13', standard: '20'} # with older clang
|
- {compiler: '13', standard: '20'} # with older clang
|
||||||
@@ -61,7 +60,7 @@ jobs:
|
|||||||
sudo apt-get install clang-${{ matrix.compiler }}
|
sudo apt-get install clang-${{ matrix.compiler }}
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
cmake -B build/ -DCMAKE_CXX_COMPILER=clang++-${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_BUILD_TESTS=ON -DTOML11_PRECOMPILE=${{ matrix.precompile }} -DTOML11_ENABLE_ACCESS_CHECK=${{ matrix.betafeature }}
|
cmake -B build/ -DCMAKE_CXX_COMPILER=clang++-${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_BUILD_TESTS=ON -DTOML11_PRECOMPILE=${{ matrix.precompile }}
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake --build build/ -j${{ steps.cpu-cores.outputs.count }}
|
cmake --build build/ -j${{ steps.cpu-cores.outputs.count }}
|
||||||
@@ -75,7 +74,6 @@ jobs:
|
|||||||
compiler: ['g++-8', 'g++-7']
|
compiler: ['g++-8', 'g++-7']
|
||||||
standard: ['11', '14', '17', '20']
|
standard: ['11', '14', '17', '20']
|
||||||
precompile: ['ON', 'OFF']
|
precompile: ['ON', 'OFF']
|
||||||
betafeature: ['ON', 'OFF']
|
|
||||||
exclude:
|
exclude:
|
||||||
- {compiler: 'g++-7', standard: '20'}
|
- {compiler: 'g++-7', standard: '20'}
|
||||||
- {compiler: 'g++-8', standard: '17'}
|
- {compiler: 'g++-8', standard: '17'}
|
||||||
@@ -95,7 +93,7 @@ jobs:
|
|||||||
sudo apt-get install ${{ matrix.compiler }}
|
sudo apt-get install ${{ matrix.compiler }}
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
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 }}
|
cmake -B build/ -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_BUILD_TESTS=ON -DTOML11_PRECOMPILE=${{ matrix.precompile }}
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake --build build/ -j${{ steps.cpu-cores.outputs.count }}
|
cmake --build build/ -j${{ steps.cpu-cores.outputs.count }}
|
||||||
@@ -110,7 +108,6 @@ jobs:
|
|||||||
compiler: ['10', '9', '8', '7', '6.0']
|
compiler: ['10', '9', '8', '7', '6.0']
|
||||||
standard: ['11', '14', '17', '20']
|
standard: ['11', '14', '17', '20']
|
||||||
precompile: ['ON', 'OFF']
|
precompile: ['ON', 'OFF']
|
||||||
betafeature: ['ON', 'OFF']
|
|
||||||
exclude:
|
exclude:
|
||||||
- {compiler: '6.0', standard: '20'}
|
- {compiler: '6.0', standard: '20'}
|
||||||
- {compiler: '7', standard: '20'}
|
- {compiler: '7', standard: '20'}
|
||||||
@@ -131,7 +128,7 @@ jobs:
|
|||||||
sudo apt-get install clang-${{ matrix.compiler }}
|
sudo apt-get install clang-${{ matrix.compiler }}
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
cmake -B build/ -DCMAKE_CXX_COMPILER=clang++-${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_BUILD_TESTS=ON -DTOML11_PRECOMPILE=${{ matrix.precompile }} -DTOML11_ENABLE_ACCESS_CHECK=${{ matrix.betafeature }}
|
cmake -B build/ -DCMAKE_CXX_COMPILER=clang++-${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_BUILD_TESTS=ON -DTOML11_PRECOMPILE=${{ matrix.precompile }}
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake --build build/ -j${{ steps.cpu-cores.outputs.count }}
|
cmake --build build/ -j${{ steps.cpu-cores.outputs.count }}
|
||||||
@@ -170,7 +167,6 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
standard: ['11', '14', '17', '20']
|
standard: ['11', '14', '17', '20']
|
||||||
precompile: ['ON', 'OFF']
|
precompile: ['ON', 'OFF']
|
||||||
betafeature: ['ON', 'OFF']
|
|
||||||
steps:
|
steps:
|
||||||
- name: Get number of CPU cores
|
- name: Get number of CPU cores
|
||||||
uses: SimenB/github-actions-cpu-cores@v2
|
uses: SimenB/github-actions-cpu-cores@v2
|
||||||
@@ -181,7 +177,7 @@ jobs:
|
|||||||
submodules: true
|
submodules: true
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
cmake -B build/ -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_BUILD_TESTS=ON -DTOML11_PRECOMPILE=${{ matrix.precompile }} -DTOML11_ENABLE_ACCESS_CHECK=${{ matrix.betafeature }}
|
cmake -B build/ -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_BUILD_TESTS=ON -DTOML11_PRECOMPILE=${{ matrix.precompile }}
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake --build build/ -j${{ steps.cpu-cores.outputs.count }}
|
cmake --build build/ -j${{ steps.cpu-cores.outputs.count }}
|
||||||
|
Reference in New Issue
Block a user