mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-28 19:53:52 +00:00
Clean up sdist creation (#422)
* Adding package to release * Fix build.yml * Update build.yml * Update build.yml * Update build.yml * Update build.yml * Cleaner, tigher packages * Do not add package to release
This commit is contained in:
parent
ee851c7e88
commit
9549c6287f
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
@ -17,20 +17,42 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
|
||||||
- uses: actions/setup-python@v1
|
- uses: actions/setup-python@v1
|
||||||
|
|
||||||
- name: Make header
|
- name: Make header
|
||||||
run: python ./scripts/MakeSingleHeader.py CLI11.hpp
|
run: python ./scripts/MakeSingleHeader.py CLI11.hpp
|
||||||
|
|
||||||
|
# Build in place for simplicity - don't do this in real life!
|
||||||
|
- 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@v1
|
- uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: CLI11.hpp
|
name: CLI11.hpp
|
||||||
path: CLI11.hpp
|
path: CLI11.hpp
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v1
|
||||||
|
with:
|
||||||
|
name: CLI11-Source
|
||||||
|
path: CLI11-Source
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
files: CLI11.hpp
|
files: |
|
||||||
|
CLI11.hpp
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
@ -286,7 +286,17 @@ set(CPACK_SOURCE_IGNORE_FILES
|
|||||||
/\\\\.DS_Store
|
/\\\\.DS_Store
|
||||||
/.*\\\\.egg-info
|
/.*\\\\.egg-info
|
||||||
/var
|
/var
|
||||||
/Pipfile.*$
|
/azure-pipelines.yml
|
||||||
|
/.ci
|
||||||
|
/docs
|
||||||
|
/examples
|
||||||
|
/test_package
|
||||||
|
/book
|
||||||
|
/.travis.yml
|
||||||
|
.swp
|
||||||
|
/.all-contributorsrc
|
||||||
|
/.appveyor.yml
|
||||||
|
/.pre-commit.*yaml
|
||||||
)
|
)
|
||||||
|
|
||||||
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
|
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user