mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-12-16 03:08:52 +08:00
chore: update ci runners to the latest
This commit is contained in:
74
.github/workflows/main.yml
vendored
74
.github/workflows/main.yml
vendored
@@ -4,14 +4,12 @@ on: [push, pull_request]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux-gcc:
|
build-linux-gcc:
|
||||||
runs-on: Ubuntu-20.04
|
runs-on: Ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
compiler: ['g++-11', 'g++-10', 'g++-9', 'g++-8', 'g++-7']
|
compiler: ['g++-12', 'g++-11', 'g++-10', 'g++-9']
|
||||||
standard: ['11', '14', '17', '20']
|
standard: ['11', '14', '17', '20']
|
||||||
unreleased: ['ON', 'OFF']
|
unreleased: ['ON', 'OFF']
|
||||||
exclude:
|
|
||||||
- {compiler: 'g++-7', standard: '20'}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -26,11 +24,7 @@ jobs:
|
|||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
if [[ "${{ matrix.compiler }}" == "g++-8" && ( "${{ matrix.standard }}" == "17" || "${{ matrix.standard }}" == "20" ) ]] ; then
|
cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }}
|
||||||
cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_REQUIRE_FILESYSTEM_LIBRARY=ON -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }}
|
|
||||||
else
|
|
||||||
cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }}
|
|
||||||
fi
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cd build && cmake --build .
|
cd build && cmake --build .
|
||||||
@@ -38,17 +32,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd build && ctest --output-on-failure
|
cd build && ctest --output-on-failure
|
||||||
build-linux-clang:
|
build-linux-clang:
|
||||||
runs-on: Ubuntu-20.04
|
runs-on: Ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
compiler: ['12', '11', '10', '9', '8', '7', '6.0']
|
compiler: ['15', '14', '13', '12', '11']
|
||||||
standard: ['11', '14', '17', '20']
|
standard: ['11', '14', '17', '20']
|
||||||
unreleased: ['ON', 'OFF']
|
unreleased: ['ON', 'OFF']
|
||||||
exclude:
|
|
||||||
- {compiler: '6.0', standard: '20'}
|
|
||||||
- {compiler: '7', standard: '20'}
|
|
||||||
- {compiler: '8', standard: '20'}
|
|
||||||
- {compiler: '9', standard: '20'}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -72,12 +61,14 @@ jobs:
|
|||||||
cd build && ctest --output-on-failure
|
cd build && ctest --output-on-failure
|
||||||
|
|
||||||
build-linux-old-gcc:
|
build-linux-old-gcc:
|
||||||
runs-on: Ubuntu-18.04
|
runs-on: Ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
compiler: ['g++-6', 'g++-5']
|
compiler: ['g++-8', 'g++-7']
|
||||||
standard: ['11', '14']
|
standard: ['11', '14', '17', '20']
|
||||||
unreleased: ['ON', 'OFF']
|
unreleased: ['ON', 'OFF']
|
||||||
|
exclude:
|
||||||
|
- {compiler: 'g++-7', standard: '20'}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -93,7 +84,11 @@ jobs:
|
|||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }}
|
if [[ "${{ matrix.compiler }}" == "g++-8" && ( "${{ matrix.standard }}" == "17" || "${{ matrix.standard }}" == "20" ) ]] ; then
|
||||||
|
cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_REQUIRE_FILESYSTEM_LIBRARY=ON -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }}
|
||||||
|
else
|
||||||
|
cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }}
|
||||||
|
fi
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cd build && cmake --build .
|
cd build && cmake --build .
|
||||||
@@ -102,12 +97,17 @@ jobs:
|
|||||||
cd build && ctest --output-on-failure
|
cd build && ctest --output-on-failure
|
||||||
|
|
||||||
build-linux-old-clang:
|
build-linux-old-clang:
|
||||||
runs-on: Ubuntu-18.04
|
runs-on: Ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
compiler: ['5.0', '4.0', '3.9']
|
compiler: ['10', '9', '8', '7', '6.0']
|
||||||
standard: ['11', '14']
|
standard: ['11', '14', '17', '20']
|
||||||
unreleased: ['ON', 'OFF']
|
unreleased: ['ON', 'OFF']
|
||||||
|
exclude:
|
||||||
|
- {compiler: '6.0', standard: '20'}
|
||||||
|
- {compiler: '7', standard: '20'}
|
||||||
|
- {compiler: '8', standard: '20'}
|
||||||
|
- {compiler: '9', standard: '20'}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -131,7 +131,33 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd build && ctest --output-on-failure
|
cd build && ctest --output-on-failure
|
||||||
|
|
||||||
build-osx:
|
build-osx-12:
|
||||||
|
runs-on: macos-12
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
standard: ['11', '14', '17', '20']
|
||||||
|
unreleased: ['ON', 'OFF']
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- name: Install
|
||||||
|
run: |
|
||||||
|
brew install boost
|
||||||
|
- name: Configure
|
||||||
|
run: |
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_USE_UNRELEASED_TOML_FEATURES=${{ matrix.unreleased }}
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
cd build && cmake --build .
|
||||||
|
- name: Test
|
||||||
|
run: |
|
||||||
|
cd build && ctest --output-on-failure
|
||||||
|
|
||||||
|
|
||||||
|
build-osx-11:
|
||||||
runs-on: macos-11
|
runs-on: macos-11
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|||||||
Reference in New Issue
Block a user