mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
Add gcc 12 and NONASCII flags to ubuntu build matrix. (#262)
This commit is contained in:
parent
8111a0d17d
commit
d4fa0c3dd3
3 changed files with 27 additions and 24 deletions
4
.github/workflows/macos.yml
vendored
4
.github/workflows/macos.yml
vendored
|
|
@ -24,7 +24,7 @@ jobs:
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=Release
|
cmake .. -DCMAKE_BUILD_TYPE=Release
|
||||||
cmake --build . --config Release
|
cmake --build . -j 4 --config Release
|
||||||
ctest --output-on-failure -C Release
|
ctest --output-on-failure -C Release
|
||||||
|
|
||||||
- name: Build Debug
|
- name: Build Debug
|
||||||
|
|
@ -33,7 +33,7 @@ jobs:
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=Debug
|
cmake .. -DCMAKE_BUILD_TYPE=Debug
|
||||||
cmake --build . --config Debug
|
cmake --build . -j 4 --config Debug
|
||||||
ctest --output-on-failure -C Debug
|
ctest --output-on-failure -C Debug
|
||||||
|
|
||||||
- name: Bazel Test
|
- name: Bazel Test
|
||||||
|
|
|
||||||
37
.github/workflows/ubuntu.yml
vendored
37
.github/workflows/ubuntu.yml
vendored
|
|
@ -6,24 +6,27 @@ permissions: read-all
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ubuntu:
|
ubuntu:
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
compiler:
|
compiler:
|
||||||
- { cc: "gcc-9", cxx: "g++-9" }
|
- { cc: "gcc-9", cxx: "g++-9", os: "ubuntu-20.04", nonascii: "FALSE" }
|
||||||
- { cc: "gcc-10", cxx: "g++-10" }
|
- { cc: "gcc-10", cxx: "g++-10", os: "ubuntu-20.04", nonascii: "TRUE" }
|
||||||
- { cc: "gcc-11", cxx: "g++-11" }
|
- { cc: "gcc-10", cxx: "g++-10", os: "ubuntu-20.04", nonascii: "FALSE" }
|
||||||
- { cc: "clang-9", cxx: "clang++-9" }
|
- { cc: "gcc-11", cxx: "g++-11", os: "ubuntu-20.04", nonascii: "TRUE" }
|
||||||
- { cc: "clang-10", cxx: "clang++-10" }
|
- { cc: "gcc-11", cxx: "g++-11", os: "ubuntu-20.04", nonascii: "FALSE" }
|
||||||
- { cc: "clang-11", cxx: "clang++-11" }
|
- { cc: "gcc-12", cxx: "g++-12", os: "ubuntu-22.04", nonascii: "FALSE" }
|
||||||
- { cc: "clang-12", cxx: "clang++-12" }
|
- { cc: "clang-9", cxx: "clang++-9", os: "ubuntu-20.04", nonascii: "FALSE" }
|
||||||
- { cc: "clang-13", cxx: "clang++-13" }
|
- { cc: "clang-10", cxx: "clang++-10", os: "ubuntu-20.04", nonascii: "FALSE" }
|
||||||
- { cc: "clang-14", cxx: "clang++-14" }
|
- { cc: "clang-11", cxx: "clang++-11", os: "ubuntu-20.04", nonascii: "FALSE" }
|
||||||
- { cc: "clang-15", cxx: "clang++-15" }
|
- { cc: "clang-12", cxx: "clang++-12", os: "ubuntu-20.04", nonascii: "FALSE" }
|
||||||
- { cc: "clang-16", cxx: "clang++-16" }
|
- { cc: "clang-13", cxx: "clang++-13", os: "ubuntu-20.04", nonascii: "FALSE" }
|
||||||
|
- { cc: "clang-14", cxx: "clang++-14", os: "ubuntu-20.04", nonascii: "FALSE" }
|
||||||
|
- { cc: "clang-15", cxx: "clang++-15", os: "ubuntu-20.04", nonascii: "FALSE" }
|
||||||
|
- { cc: "clang-16", cxx: "clang++-16", os: "ubuntu-20.04", nonascii: "FALSE" }
|
||||||
|
|
||||||
name: "${{matrix.compiler.cc}}"
|
name: "${{ format('{0} NONASCII={1}', matrix.compiler.cc, matrix.compiler.nonascii) }}"
|
||||||
|
runs-on: ${{ matrix.compiler.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
|
@ -57,8 +60,8 @@ jobs:
|
||||||
rm -rf build
|
rm -rf build
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
|
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} -DMAGIC_ENUM_OPT_ENABLE_NONASCII:BOOL=${{matrix.compiler.nonascii}}
|
||||||
cmake --build . --config Release
|
cmake --build . -j 4 --config Release
|
||||||
ctest --output-on-failure -C Release
|
ctest --output-on-failure -C Release
|
||||||
|
|
||||||
- name: Build Debug
|
- name: Build Debug
|
||||||
|
|
@ -66,8 +69,8 @@ jobs:
|
||||||
rm -rf build
|
rm -rf build
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
|
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} -DMAGIC_ENUM_OPT_ENABLE_NONASCII:BOOL=${{matrix.compiler.nonascii}}
|
||||||
cmake --build . --config Debug
|
cmake --build . -j 4 --config Debug
|
||||||
ctest --output-on-failure -C Debug
|
ctest --output-on-failure -C Debug
|
||||||
|
|
||||||
- name: Bazel Test
|
- name: Bazel Test
|
||||||
|
|
|
||||||
10
.github/workflows/windows.yml
vendored
10
.github/workflows/windows.yml
vendored
|
|
@ -14,7 +14,7 @@ jobs:
|
||||||
- { 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
|
||||||
|
|
||||||
name: "${{matrix.config.vs}}"
|
name: "${{ matrix.config.vs }}"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
|
@ -25,9 +25,9 @@ jobs:
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -A Win32
|
cmake .. -A Win32
|
||||||
cmake --build . --config Release
|
cmake --build . -j 4 --config Release
|
||||||
ctest --output-on-failure -C Release
|
ctest --output-on-failure -C Release
|
||||||
cmake --build . --config Debug
|
cmake --build . -j 4 --config Debug
|
||||||
ctest --output-on-failure -C Debug
|
ctest --output-on-failure -C Debug
|
||||||
|
|
||||||
- name: Build x64
|
- name: Build x64
|
||||||
|
|
@ -37,9 +37,9 @@ jobs:
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -A x64
|
cmake .. -A x64
|
||||||
cmake --build . --config Release
|
cmake --build . -j 4 --config Release
|
||||||
ctest --output-on-failure -C Release
|
ctest --output-on-failure -C Release
|
||||||
cmake --build . --config Debug
|
cmake --build . -j 4 --config Debug
|
||||||
ctest --output-on-failure -C Debug
|
ctest --output-on-failure -C Debug
|
||||||
|
|
||||||
- name: Bazel Test
|
- name: Bazel Test
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue