ci: re-activate linux CI

This commit is contained in:
ToruNiina 2021-03-25 14:33:55 +09:00
parent 970f7cb36a
commit 2c5cc431fe

View File

@ -3,88 +3,88 @@ name: build
on: [push, pull_request]
jobs:
# build-linux-gcc:
# runs-on: Ubuntu-18.04
# strategy:
# matrix:
# # g++-4.8 and 4.9 are tested on Travis.CI.
# compiler: ['g++-9', 'g++-8', 'g++-7', 'g++-6', 'g++-5']
# standard: ['11', '14', '17', '20']
# exclude:
# - {compiler: 'g++-5', standard: '17'}
# - {compiler: 'g++-6', standard: '17'}
# - {compiler: 'g++-5', standard: '20'}
# - {compiler: 'g++-6', standard: '20'}
# - {compiler: 'g++-7', standard: '20'}
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# submodules: true
# - name: Install
# run: |
# sudo apt-add-repository ppa:mhier/libboost-latest
# sudo apt-get update
# sudo apt-get install boost1.70
# if [[ "${{ matrix.compiler }}" == "g++-6" || "${{ matrix.compiler }}" == "g++-5" ]] ; then
# sudo apt-add-repository ppa:ubuntu-toolchain-r/test
# sudo apt-get update
# sudo apt-get install ${{ matrix.compiler }}
# fi
# - name: Configure
# run: |
# 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_REQUIRE_FILESYSTEM_LIBRARY=ON
# else
# cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }}
# fi
# - name: Build
# run: |
# cd build && cmake --build .
# - name: Test
# run: |
# cd build && ctest --output-on-failure
# build-linux-clang:
# runs-on: Ubuntu-18.04
# strategy:
# matrix:
# compiler: ['10', '9', '8', '7', '6.0', '5.0', '4.0', '3.9']
# standard: ['11', '14', '17', '20']
# exclude:
# - {compiler: '3.9', standard: '17'}
# - {compiler: '4.0', standard: '17'}
# - {compiler: '5.0', standard: '17'}
# - {compiler: '3.9', standard: '20'}
# - {compiler: '4.0', standard: '20'}
# - {compiler: '5.0', standard: '20'}
# - {compiler: '6.0', standard: '20'}
# - {compiler: '7', standard: '20'}
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# submodules: true
# - name: Install
# run: |
# sudo apt-add-repository ppa:mhier/libboost-latest
# sudo apt-get update
# sudo apt-get install boost1.70
# if [[ "${{ matrix.compiler }}" != "6" && "${{ matrix.compiler }}" != "8" && "${{ matrix.compiler }}" != "9" ]] ; then
# sudo apt-add-repository ppa:ubuntu-toolchain-r/test
# sudo apt-get update
# sudo apt-get install clang-${{ matrix.compiler }}
# fi
# - name: Configure
# run: |
# mkdir build && cd build
# cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_C_COMPILER=clang-${{ matrix.compiler }} -DCMAKE_CXX_COMPILER=clang++-${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }}
# - name: Build
# run: |
# cd build && cmake --build .
# - name: Test
# run: |
# cd build && ctest --output-on-failure
build-linux-gcc:
runs-on: Ubuntu-18.04
strategy:
matrix:
# g++-4.8 and 4.9 are tested on Travis.CI.
compiler: ['g++-9', 'g++-8', 'g++-7', 'g++-6', 'g++-5']
standard: ['11', '14', '17', '20']
exclude:
- {compiler: 'g++-5', standard: '17'}
- {compiler: 'g++-6', standard: '17'}
- {compiler: 'g++-5', standard: '20'}
- {compiler: 'g++-6', standard: '20'}
- {compiler: 'g++-7', standard: '20'}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Install
run: |
sudo apt-add-repository ppa:mhier/libboost-latest
sudo apt-get update
sudo apt-get install boost1.70
if [[ "${{ matrix.compiler }}" == "g++-6" || "${{ matrix.compiler }}" == "g++-5" ]] ; then
sudo apt-add-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install ${{ matrix.compiler }}
fi
- name: Configure
run: |
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_REQUIRE_FILESYSTEM_LIBRARY=ON
else
cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }}
fi
- name: Build
run: |
cd build && cmake --build .
- name: Test
run: |
cd build && ctest --output-on-failure
build-linux-clang:
runs-on: Ubuntu-18.04
strategy:
matrix:
compiler: ['10', '9', '8', '7', '6.0', '5.0', '4.0', '3.9']
standard: ['11', '14', '17', '20']
exclude:
- {compiler: '3.9', standard: '17'}
- {compiler: '4.0', standard: '17'}
- {compiler: '5.0', standard: '17'}
- {compiler: '3.9', standard: '20'}
- {compiler: '4.0', standard: '20'}
- {compiler: '5.0', standard: '20'}
- {compiler: '6.0', standard: '20'}
- {compiler: '7', standard: '20'}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Install
run: |
sudo apt-add-repository ppa:mhier/libboost-latest
sudo apt-get update
sudo apt-get install boost1.70
if [[ "${{ matrix.compiler }}" != "6" && "${{ matrix.compiler }}" != "8" && "${{ matrix.compiler }}" != "9" ]] ; then
sudo apt-add-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install clang-${{ matrix.compiler }}
fi
- name: Configure
run: |
mkdir build && cd build
cmake .. -Dtoml11_BUILD_TEST=ON -DCMAKE_C_COMPILER=clang-${{ matrix.compiler }} -DCMAKE_CXX_COMPILER=clang++-${{ matrix.compiler }} -DCMAKE_CXX_STANDARD=${{ matrix.standard }}
- name: Build
run: |
cd build && cmake --build .
- name: Test
run: |
cd build && ctest --output-on-failure
build-windows-msvc:
runs-on: windows-2019
strategy: