update ci
This commit is contained in:
parent
db94e8b345
commit
3237b9a367
3 changed files with 87 additions and 27 deletions
26
.github/workflows/macos.yml
vendored
26
.github/workflows/macos.yml
vendored
|
@ -11,17 +11,25 @@ jobs:
|
||||||
config:
|
config:
|
||||||
- { os: macos-11 } # https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md#xcode
|
- { os: macos-11 } # https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md#xcode
|
||||||
- { os: macos-12 } # https://github.com/actions/virtual-environments/blob/main/images/macos/macos-12-Readme.md#xcode
|
- { os: macos-12 } # https://github.com/actions/virtual-environments/blob/main/images/macos/macos-12-Readme.md#xcode
|
||||||
build: [Debug, Release]
|
|
||||||
|
|
||||||
name: "${{matrix.config.os}}:${{matrix.build}}"
|
name: "${{matrix.config.os}}"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Build Release
|
||||||
run: cmake -DCMAKE_BUILD_TYPE=${{matrix.build}}
|
run: |
|
||||||
|
rm -rf build
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake .. -DCMAKE_BUILD_TYPE=Release
|
||||||
|
cmake --build . --config Release
|
||||||
|
ctest --output-on-failure -C Release
|
||||||
|
|
||||||
- name: Build
|
- name: Build Debug
|
||||||
run: cmake --build . --config ${{matrix.build}}
|
run: |
|
||||||
|
rm -rf build
|
||||||
- name: Tests
|
mkdir build
|
||||||
run: ctest --output-on-failure -C ${{matrix.build}}
|
cd build
|
||||||
|
cmake .. -DCMAKE_BUILD_TYPE=Debug
|
||||||
|
cmake --build . --config Debug
|
||||||
|
ctest --output-on-failure -C Debug
|
||||||
|
|
54
.github/workflows/ubuntu.yml
vendored
54
.github/workflows/ubuntu.yml
vendored
|
@ -8,23 +8,61 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
build: [Debug, Release]
|
|
||||||
compiler:
|
compiler:
|
||||||
- { cc: "gcc-9", cxx: "g++-9" }
|
- { cc: "gcc-9", cxx: "g++-9" }
|
||||||
- { cc: "gcc-10", cxx: "g++-10" }
|
- { cc: "gcc-10", cxx: "g++-10" }
|
||||||
|
- { cc: "gcc-11", cxx: "g++-11" }
|
||||||
|
- { cc: "clang-9", cxx: "clang++-9" }
|
||||||
- { cc: "clang-10", cxx: "clang++-10" }
|
- { cc: "clang-10", cxx: "clang++-10" }
|
||||||
- { cc: "clang-11", cxx: "clang++-11" }
|
- { cc: "clang-11", cxx: "clang++-11" }
|
||||||
- { cc: "clang-12", cxx: "clang++-12" }
|
- { cc: "clang-12", cxx: "clang++-12" }
|
||||||
|
- { cc: "clang-13", cxx: "clang++-13" }
|
||||||
|
- { cc: "clang-14", cxx: "clang++-14" }
|
||||||
|
- { cc: "clang-15", cxx: "clang++-15" }
|
||||||
|
- { cc: "clang-16", cxx: "clang++-16" }
|
||||||
|
|
||||||
name: "${{matrix.compiler.cxx}}:${{matrix.build}}"
|
name: "${{matrix.compiler.cc}}"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure clang
|
||||||
run: cmake -DCMAKE_BUILD_TYPE=${{matrix.build}} -DCMAKE_C_COMPILER=${{matrix.compiler.cc}} -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
|
run: |
|
||||||
|
if [[ "${{matrix.compiler.cc}}" == "clang"* ]]; then
|
||||||
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
|
||||||
|
sudo apt-add-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-9 main"
|
||||||
|
sudo apt-add-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-10 main"
|
||||||
|
sudo apt-add-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main"
|
||||||
|
sudo apt-add-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main"
|
||||||
|
sudo apt-add-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-13 main"
|
||||||
|
sudo apt-add-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-14 main"
|
||||||
|
sudo apt-add-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-15 main"
|
||||||
|
sudo apt-add-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal main"
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install ${{matrix.compiler.cc}} -y
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Build
|
- name: Configure gcc
|
||||||
run: cmake --build . --config ${{matrix.build}}
|
run: |
|
||||||
|
if [[ "${{matrix.compiler.cc}}" == "gcc"* ]]; then
|
||||||
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install ${{matrix.compiler.cxx}} -y
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Tests
|
- name: Build Release
|
||||||
run: ctest --output-on-failure -C ${{matrix.build}}
|
run: |
|
||||||
|
rm -rf build
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
|
||||||
|
cmake --build . --config Release
|
||||||
|
ctest --output-on-failure -C Release
|
||||||
|
|
||||||
|
- name: Build Debug
|
||||||
|
run: |
|
||||||
|
rm -rf build
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
|
||||||
|
cmake --build . --config Debug
|
||||||
|
ctest --output-on-failure -C Debug
|
||||||
|
|
32
.github/workflows/windows.yml
vendored
32
.github/workflows/windows.yml
vendored
|
@ -11,18 +11,32 @@ jobs:
|
||||||
config:
|
config:
|
||||||
- { os: windows-2019, vs: "Visual Studio 2019" } # https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md#visual-studio-enterprise-2019
|
- { os: windows-2019, vs: "Visual Studio 2019" } # https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md#visual-studio-enterprise-2019
|
||||||
- { os: windows-2022, vs: "Visual Studio 2022" } # https://github.com/actions/virtual-environments/blob/main/images/win/Windows2022-Readme.md#visual-studio-enterprise-2022
|
- { os: windows-2022, vs: "Visual Studio 2022" } # https://github.com/actions/virtual-environments/blob/main/images/win/Windows2022-Readme.md#visual-studio-enterprise-2022
|
||||||
build: [Debug, Release]
|
|
||||||
platform: [Win32, x64]
|
|
||||||
|
|
||||||
name: "${{matrix.config.vs}}:${{matrix.platform}}:${{matrix.build}}"
|
name: "${{matrix.config.vs}}"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Build Win32
|
||||||
run: cmake -A ${{matrix.platform}}
|
shell: bash
|
||||||
|
run: |
|
||||||
|
rm -rf build
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake .. -A Win32
|
||||||
|
cmake --build . --config Release
|
||||||
|
ctest --output-on-failure -C Release
|
||||||
|
cmake --build . --config Debug
|
||||||
|
ctest --output-on-failure -C Debug
|
||||||
|
|
||||||
- name: Build
|
- name: Build x64
|
||||||
run: cmake --build . --config ${{matrix.build}}
|
shell: bash
|
||||||
|
run: |
|
||||||
|
rm -rf build
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake .. -A x64
|
||||||
|
cmake --build . --config Release
|
||||||
|
ctest --output-on-failure -C Release
|
||||||
|
cmake --build . --config Debug
|
||||||
|
ctest --output-on-failure -C Debug
|
||||||
|
|
||||||
- name: Tests
|
|
||||||
run: ctest --output-on-failure -C ${{matrix.build}}
|
|
||||||
|
|
Loading…
Reference in a new issue