1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-10 23:44:29 +00:00

add fmt support

This commit is contained in:
neargye 2023-05-19 19:36:50 +04:00
parent 5367f5183c
commit 737ed4fc7f
6 changed files with 42 additions and 27 deletions

View file

@ -6,7 +6,7 @@ permissions: read-all
jobs:
build:
runs-on: ${{matrix.config.os}}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
@ -14,7 +14,7 @@ jobs:
- { 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
name: "${{matrix.config.os}}"
name: "${{ matrix.config.os }}"
steps:
- uses: actions/checkout@v3

View file

@ -32,7 +32,7 @@ jobs:
- name: Configure clang
run: |
if [[ "${{matrix.compiler.cc}}" == "clang"* ]]; then
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"
@ -44,15 +44,15 @@ jobs:
sudo apt-add-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-16 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
sudo apt install ${{ matrix.compiler.cc }} -y
fi
- name: Configure gcc
run: |
if [[ "${{matrix.compiler.cc}}" == "gcc"* ]]; then
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
sudo apt install ${{ matrix.compiler.cxx }} -y
fi
- name: Build Release
@ -60,7 +60,7 @@ jobs:
rm -rf build
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} -DMAGIC_ENUM_OPT_ENABLE_NONASCII:BOOL=${{matrix.compiler.nonascii}}
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }} -DMAGIC_ENUM_OPT_ENABLE_NONASCII:BOOL=${{ matrix.compiler.nonascii }}
cmake --build . -j 4 --config Release
ctest --output-on-failure -C Release
@ -69,7 +69,7 @@ jobs:
rm -rf build
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} -DMAGIC_ENUM_OPT_ENABLE_NONASCII:BOOL=${{matrix.compiler.nonascii}}
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }} -DMAGIC_ENUM_OPT_ENABLE_NONASCII:BOOL=${{ matrix.compiler.nonascii }}
cmake --build . -j 4 --config Debug
ctest --output-on-failure -C Debug

View file

@ -6,7 +6,7 @@ permissions: read-all
jobs:
build:
runs-on: ${{matrix.config.os}}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix: