-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
854 changed files
with
71,988 additions
and
7 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
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
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
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,12 @@ | ||
BasedOnStyle: LLVM | ||
IndentWidth: 4 | ||
ColumnLimit: 2000 | ||
AlwaysBreakAfterReturnType: TopLevelDefinitions | ||
KeepEmptyLinesAtTheStartOfBlocks: false | ||
MaxEmptyLinesToKeep: 2 | ||
BreakBeforeBraces: Custom | ||
BraceWrapping: | ||
BeforeElse: true | ||
AlignEscapedNewlines: Left | ||
UseTab: Never | ||
#PPDirectiveIndentStyle: AfterHash |
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,11 @@ | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.travis.yml export-ignore | ||
create-cmake-config.h.in.pl export-ignore | ||
docs export-ignore | ||
man/fix-man-links.sh export-ignore | ||
man/make_zip_errors.sh export-ignore | ||
man/mkdocset.pl export-ignore | ||
man/nih-man.css export-ignore | ||
vstudio export-ignore | ||
developer-xcode export-ignore |
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,32 @@ | ||
--- | ||
name: Bug Report | ||
about: Report where libzip didn't behave like you expected. | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the Bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**Expected Behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Observed Behavior** | ||
A clear and concise description of what actually happened. | ||
|
||
**To Reproduce** | ||
Short program or code snippet that reproduces the problem. | ||
|
||
**libzip Version** | ||
Version of libzip or revision repository used. | ||
|
||
**Operating System** | ||
Operating system and version, used compiler. | ||
|
||
**Test Files** | ||
If applicable, attach and describe zip archives that trigger the problem. | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,25 @@ | ||
--- | ||
name: Compile Error | ||
about: Report when libzip does not compile. | ||
title: '' | ||
labels: compile | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Compiler Error** | ||
Output from the compiler, including exact and complete error message, file name and line number. | ||
|
||
**libzip Version** | ||
Version of libzip or revision repository used. | ||
|
||
**Operating System and Compiler** | ||
The operating system and compiler used, including version number. | ||
|
||
Also, any flags passed to `cmake`. | ||
|
||
**Autodetected Configuration** | ||
Attach `CmakeCache.txt` from your build directory. This list everything `cmake` detected on your system. | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,22 @@ | ||
--- | ||
name: Feature Request | ||
about: Suggest an idea for this project. | ||
title: '' | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Description** | ||
A clear and concise description of what you want to achieve, why the current features are insufficient, and why you think it is generally useful. | ||
|
||
Also, have you checked whether the feature is already mentioned in TODO.md? If so, only submit a new issue if you expand on it. | ||
|
||
**Solution** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context about the feature request here. |
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,23 @@ | ||
name: CIFuzz | ||
on: [pull_request] | ||
jobs: | ||
Fuzzing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Build Fuzzers | ||
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master | ||
with: | ||
oss-fuzz-project-name: 'libzip' | ||
dry-run: false | ||
- name: Run Fuzzers | ||
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master | ||
with: | ||
oss-fuzz-project-name: 'libzip' | ||
fuzz-seconds: 600 | ||
dry-run: false | ||
- name: Upload Crash | ||
uses: actions/upload-artifact@v1 | ||
if: failure() | ||
with: | ||
name: artifacts | ||
path: ./out/artifacts |
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,53 @@ | ||
name: build | ||
on: [push] | ||
|
||
jobs: | ||
all: | ||
runs-on: ${{ matrix.os }} | ||
name: ${{ matrix.os }}${{ matrix.name_extra }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
cmake_extra: [""] | ||
name_extra: [""] | ||
include: | ||
- os: windows-latest | ||
cmake_extra: "-T ClangCl" | ||
name_extra: " clang-cl" | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: install dependencies (Linux) | ||
if: ${{ runner.os == 'Linux' }} | ||
run: | | ||
sudo apt-get install libzstd-dev | ||
- name: install dependencies (Windows) | ||
if: ${{ runner.os == 'Windows' }} | ||
uses: lukka/run-vcpkg@v7 | ||
id: runvcpkg | ||
with: | ||
vcpkgGitCommitId: f93ba152d55e1d243160e690bc302ffe8638358e | ||
vcpkgTriplet: x64-windows | ||
vcpkgArguments: zlib bzip2 liblzma zstd | ||
- name: prepare build directory | ||
run: | | ||
cmake -E make_directory ${{runner.workspace}}/build | ||
- name: configure (Unix) | ||
if: ${{ runner.os != 'Windows' }} | ||
working-directory: ${{runner.workspace}}/build | ||
run: | | ||
cmake ${{ matrix.cmake_extra }} ${{github.workspace}} | ||
- name: configure (Windows) | ||
if: ${{ runner.os == 'Windows' }} | ||
working-directory: ${{runner.workspace}}/build | ||
run: | | ||
cmake ${{ matrix.cmake_extra }} -DCMAKE_TOOLCHAIN_FILE=${{env.VCPKG_ROOT}}/scripts/buildsystems/vcpkg.cmake ${{github.workspace}} | ||
- name: build | ||
working-directory: ${{runner.workspace}}/build | ||
run: | | ||
cmake --build . --config Release | ||
- name: test | ||
working-directory: ${{runner.workspace}}/build | ||
run: | | ||
ctest -v -C Release |
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,66 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [master] | ||
schedule: | ||
- cron: '0 10 * * 4' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# Override automatic language detection by changing the below list | ||
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python'] | ||
language: ['cpp'] | ||
# Learn more... | ||
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
# We must fetch at least the immediate parents so that if this is | ||
# a pull request then we can checkout the head. | ||
fetch-depth: 2 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
# queries: ./path/to/local/query, your-org/your-repo/queries@main | ||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 https://git.io/JvXDl | ||
|
||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | ||
# and modify them (or add more) to build your code if your project | ||
# uses a compiled language | ||
|
||
#- run: | | ||
# make bootstrap | ||
# make release | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 |
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,11 @@ | ||
/.cache | ||
.DS_Store | ||
/build* | ||
/developer-xcode/libzip.xcodeproj/project.xcworkspace/xcuserdata/ | ||
/developer-xcode/libzip.xcodeproj/xcuserdata/ | ||
*~ | ||
*.tar.gz | ||
*.tar.xz | ||
/.clangd | ||
/compile_commands.json | ||
/cmake-build-debug |
Oops, something went wrong.