Skip to content

Commit

Permalink
Merge branch 'upstream' of github.com:kassane/fmt into zig-pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Dec 17, 2023
2 parents 9332d74 + 923005b commit 10a2e47
Show file tree
Hide file tree
Showing 28 changed files with 1,117 additions and 796 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: lint

on:
pull_request:
paths:
- '**.h'
- '**.cc'

permissions:
contents: read

jobs:
format_code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install clang-format
uses: aminya/setup-cpp@v1
with:
clangformat: 17.0.5

- name: Run clang-format
run: |
find include src -name '*.h' -o -name '*.cc' | xargs clang-format -i -style=file -fallback-style=none
git diff --exit-code
41 changes: 14 additions & 27 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,40 +1,27 @@
*.a
*.so*
*.xcodeproj
*~
.vscode/
.vs/

*.iml
.idea/
.externalNativeBuild/
.gradle/
gradle/
gradlew*
local.properties
build/
support/.cxx

bin/
/_CPack_Packages
/CMakeScripts
/Testing
/_CPack_Packages
/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
CPack*.cmake
CTestTestfile.cmake
FMT.build
Makefile
run-msbuild.bat
bin/
build/
cmake_install.cmake
fmt-*.cmake
fmt.pc

zig-cache/
zig-out/
zig-out/
virtualenv
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ if (FMT_OS)
endif ()

add_module_library(fmt src/fmt.cc FALLBACK
${FMT_SOURCES} ${FMT_HEADERS} README.rst ChangeLog.md
${FMT_SOURCES} ${FMT_HEADERS} README.md ChangeLog.md
IF FMT_MODULE)
add_library(fmt::fmt ALIAS fmt)
if (FMT_MODULE)
Expand Down Expand Up @@ -448,6 +448,6 @@ if (FMT_MASTER_PROJECT AND EXISTS ${gitignore})
set(CPACK_SOURCE_IGNORE_FILES ${ignored_files})
set(CPACK_SOURCE_PACKAGE_FILE_NAME fmt-${FMT_VERSION})
set(CPACK_PACKAGE_NAME fmt)
set(CPACK_RESOURCE_FILE_README ${PROJECT_SOURCE_DIR}/README.rst)
set(CPACK_RESOURCE_FILE_README ${PROJECT_SOURCE_DIR}/README.md)
include(CPack)
endif ()
Loading

0 comments on commit 10a2e47

Please sign in to comment.