forked from CLIUtils/CLI11
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from CLIUtils/master
Update to latest version
- Loading branch information
Showing
116 changed files
with
10,731 additions
and
3,885 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,8 +1,25 @@ | ||
#Checks: '*,-clang-analyzer-alpha.*' | ||
#Checks: '-*,google-readability-casting,llvm-namespace-comment,performance-unnecessary-value-param,llvm-include-order,misc-throw-by-value-catch-by-reference,readability-container-size-empty,google-runtime-references,modernize*' | ||
Checks: '-*,llvm-namespace-comment,readability-container-size-empty,misc-throw-by-value-catch-by-reference,modernize*,google-readability-casting' | ||
# Checks that will be implemented in future PRs: | ||
# performance-unnecessary-value-param, hints to ~110 issues. Be careful with implementing the suggested changes of this one, as auto-fixes may break the code | ||
|
||
FormatStyle: file | ||
|
||
Checks: ' | ||
-*, | ||
google-*, | ||
-google-runtime-references, | ||
llvm-include-order, | ||
llvm-namespace-comment, | ||
misc-throw-by-value-catch-by-reference, | ||
modernize*, | ||
-modernize-use-trailing-return-type, | ||
readability-container-size-empty, | ||
' | ||
|
||
WarningsAsErrors: '*' | ||
|
||
HeaderFilterRegex: '.*hpp' | ||
|
||
CheckOptions: | ||
- key: readability-braces-around-statements.ShortStatementLines | ||
value: '1' | ||
- key: google-readability-braces-around-statements.ShortStatementLines | ||
value: '3' | ||
|
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,16 @@ | ||
FROM ubuntu:18.04 | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
g++=4:7.4.0-1ubuntu2.3 \ | ||
wget=1.19.4-1ubuntu2.2 \ | ||
libidn11=1.33-2.1ubuntu1.2 \ | ||
ca-certificates=20180409 \ | ||
make=4.1-9.1ubuntu1 \ | ||
git=1:2.17.1-1ubuntu0.7 \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
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,16 @@ | ||
description: 'Test out a bare bones configuration with a CMake version' | ||
inputs: | ||
version: | ||
description: 'The full version of CMake to check' | ||
required: true | ||
options: | ||
description: 'The CMake configuration options' | ||
required: false | ||
default: "" | ||
name: 'Configure with CMake' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- ${{ inputs.version }} | ||
- ${{ inputs.options }} |
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 @@ | ||
#!/bin/bash -l | ||
|
||
set -ex | ||
|
||
mkdir -p cmake_dir | ||
mkdir -p build_tmp | ||
mkdir -p cmake_sources | ||
rm -rf cmake_dir/* build_tmp/* | ||
|
||
v=$1 | ||
fn=cmake-$v-Linux-x86_64.tar.gz | ||
|
||
if [ ! -f cmake_sources/$fn ]; then | ||
wget -qO cmake_sources/$fn "https://cmake.org/files/v${v%.*}/$fn" | ||
fi | ||
|
||
tar -xzf cmake_sources/$fn --strip-components=1 -C $PWD/cmake_dir | ||
|
||
export PATH=$PWD/cmake_dir/bin:$PATH | ||
|
||
cmake --version | ||
|
||
cd build_tmp && cmake .. $2 |
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,57 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- v* | ||
tags: | ||
- "*" | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
single-header: | ||
name: Single header | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- uses: actions/setup-python@v2 | ||
|
||
- name: Make header | ||
run: python ./scripts/MakeSingleHeader.py CLI11.hpp | ||
|
||
- name: Prepare CMake config | ||
run: cmake -S . -B build | ||
|
||
- name: Make package | ||
run: cmake --build build --target package_source | ||
|
||
- name: Copy source packages | ||
run: | | ||
mkdir -p CLI11-Source | ||
cp build/CLI11-*-Source.* CLI11-Source | ||
cp build/CLI11-*-Source.* . | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: CLI11.hpp | ||
path: CLI11.hpp | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: CLI11-Source | ||
path: CLI11-Source | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: | | ||
CLI11.hpp | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.