-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'lib/fmt/' content from commit 17dda583
git-subtree-dir: lib/fmt git-subtree-split: 17dda58391fba627a56482f5d2652a396619bc26
- Loading branch information
0 parents
commit 5abb16c
Showing
209 changed files
with
86,598 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Run manually to reformat a file: | ||
# clang-format -i --style=file <file> | ||
Language: Cpp | ||
BasedOnStyle: Google | ||
IndentPPDirectives: AfterHash | ||
IndentCaseLabels: false | ||
AlwaysBreakTemplateDeclarations: false | ||
DerivePointerAlignment: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!-- | ||
Please read the contribution guidelines before submitting a pull request: | ||
https://github.com/fmtlib/fmt/blob/master/CONTRIBUTING.md. | ||
By submitting this pull request, you agree that your contributions are licensed | ||
under the {fmt} license, and agree to future changes to the licensing. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: doc | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
# Use Ubuntu 20.04 because doxygen 1.8.13 from Ubuntu 18.04 is broken. | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Create Build Environment | ||
run: | | ||
sudo apt update | ||
sudo apt install doxygen python3-virtualenv | ||
sudo npm install -g less clean-css | ||
cmake -E make_directory ${{runner.workspace}}/build | ||
- name: Build | ||
working-directory: ${{runner.workspace}}/build | ||
env: | ||
KEY: ${{secrets.KEY}} | ||
run: $GITHUB_WORKSPACE/support/build-docs.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: linux | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
cxx: [g++-4.8, g++-10, clang++-9] | ||
build_type: [Debug, Release] | ||
std: [11] | ||
os: [ubuntu-18.04] | ||
include: | ||
- cxx: g++-4.8 | ||
install: sudo apt install g++-4.8 | ||
os: ubuntu-18.04 | ||
- cxx: g++-8 | ||
build_type: Debug | ||
std: 14 | ||
install: sudo apt install g++-8 | ||
os: ubuntu-18.04 | ||
- cxx: g++-10 | ||
build_type: Debug | ||
std: 17 | ||
os: ubuntu-18.04 | ||
- cxx: g++-11 | ||
build_type: Debug | ||
std: 20 | ||
os: ubuntu-20.04 | ||
install: sudo apt install g++-11 | ||
- cxx: clang++-9 | ||
build_type: Debug | ||
fuzz: -DFMT_FUZZ=ON -DFMT_FUZZ_LINKMAIN=ON | ||
std: 17 | ||
os: ubuntu-18.04 | ||
- cxx: clang++-11 | ||
build_type: Debug | ||
std: 20 | ||
os: ubuntu-20.04 | ||
- cxx: clang++-11 | ||
build_type: Debug | ||
std: 20 | ||
cxxflags: -stdlib=libc++ | ||
os: ubuntu-20.04 | ||
install: sudo apt install libc++-11-dev libc++abi-11-dev | ||
- shared: -DBUILD_SHARED_LIBS=ON | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Create Build Environment | ||
run: | | ||
${{matrix.install}} | ||
sudo apt update | ||
sudo apt install locales-all | ||
cmake -E make_directory ${{runner.workspace}}/build | ||
- name: Configure | ||
working-directory: ${{runner.workspace}}/build | ||
env: | ||
CXX: ${{matrix.cxx}} | ||
CXXFLAGS: ${{matrix.cxxflags}} | ||
run: | | ||
cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} ${{matrix.fuzz}} ${{matrix.shared}} \ | ||
-DCMAKE_CXX_STANDARD=${{matrix.std}} -DFMT_DOC=OFF \ | ||
-DCMAKE_CXX_VISIBILITY_PRESET=hidden -DCMAKE_VISIBILITY_INLINES_HIDDEN=ON \ | ||
-DFMT_PEDANTIC=ON -DFMT_WERROR=ON $GITHUB_WORKSPACE | ||
- name: Build | ||
working-directory: ${{runner.workspace}}/build | ||
run: | | ||
threads=`nproc` | ||
cmake --build . --config ${{matrix.build_type}} --parallel $threads | ||
- name: Test | ||
working-directory: ${{runner.workspace}}/build | ||
run: ctest -C ${{matrix.build_type}} | ||
env: | ||
CTEST_OUTPUT_ON_FAILURE: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: macos | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-10.15 | ||
strategy: | ||
matrix: | ||
build_type: [Debug, Release] | ||
include: | ||
- shared: -DBUILD_SHARED_LIBS=ON | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Create Build Environment | ||
run: cmake -E make_directory ${{runner.workspace}}/build | ||
|
||
- name: Configure | ||
working-directory: ${{runner.workspace}}/build | ||
run: | | ||
cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} ${{matrix.shared}} \ | ||
-DCMAKE_CXX_VISIBILITY_PRESET=hidden -DCMAKE_VISIBILITY_INLINES_HIDDEN=ON \ | ||
-DFMT_DOC=OFF -DFMT_PEDANTIC=ON -DFMT_WERROR=ON $GITHUB_WORKSPACE | ||
- name: Build | ||
working-directory: ${{runner.workspace}}/build | ||
run: | | ||
threads=`sysctl -n hw.logicalcpu` | ||
cmake --build . --config ${{matrix.build_type}} --parallel $threads | ||
- name: Test | ||
working-directory: ${{runner.workspace}}/build | ||
run: ctest -C ${{matrix.build_type}} | ||
env: | ||
CTEST_OUTPUT_ON_FAILURE: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: windows | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
matrix: | ||
# windows-2019 has MSVC 2019 installed: | ||
# https://github.com/actions/virtual-environments. | ||
os: [windows-2019] | ||
platform: [Win32, x64] | ||
build_type: [Debug, Release] | ||
standard: [11, 17, 20] | ||
include: | ||
- os: windows-2019 | ||
platform: Win32 | ||
build_type: Debug | ||
shared: -DBUILD_SHARED_LIBS=ON | ||
exclude: | ||
- os: windows-2019 | ||
standard: 11 | ||
platform: Win32 | ||
- os: windows-2019 | ||
standard: 20 | ||
platform: Win32 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Create Build Environment | ||
run: cmake -E make_directory ${{runner.workspace}}/build | ||
|
||
- name: Configure | ||
# Use a bash shell for $GITHUB_WORKSPACE. | ||
shell: bash | ||
working-directory: ${{runner.workspace}}/build | ||
run: | | ||
cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} ${{matrix.shared}} \ | ||
-A ${{matrix.platform}} \ | ||
-DCMAKE_CXX_STANDARD=${{matrix.standard}} \ | ||
$GITHUB_WORKSPACE | ||
- name: Build | ||
working-directory: ${{runner.workspace}}/build | ||
run: | | ||
$threads = (Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors | ||
cmake --build . --config ${{matrix.build_type}} --parallel $threads | ||
- name: Test | ||
working-directory: ${{runner.workspace}}/build | ||
run: ctest -C ${{matrix.build_type}} -V | ||
env: | ||
CTEST_OUTPUT_ON_FAILURE: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
.vscode/ | ||
.vs/ | ||
|
||
*.iml | ||
.idea/ | ||
.externalNativeBuild/ | ||
.gradle/ | ||
gradle/ | ||
gradlew* | ||
local.properties | ||
build/ | ||
support/.cxx | ||
|
||
bin/ | ||
/_CPack_Packages | ||
/CMakeScripts | ||
/doc/doxyxml | ||
/doc/html | ||
/doc/node_modules | ||
virtualenv | ||
/Testing | ||
/install_manifest.txt | ||
*~ | ||
*.a | ||
*.so* | ||
*.xcodeproj | ||
*.zip | ||
cmake_install.cmake | ||
CPack*.cmake | ||
fmt-*.cmake | ||
CTestTestfile.cmake | ||
CMakeCache.txt | ||
CMakeFiles | ||
FMT.build | ||
Makefile | ||
run-msbuild.bat | ||
fmt.pc |
Oops, something went wrong.