-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
116 changed files
with
17,269 additions
and
1,207 deletions.
There are no files selected for viewing
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Build Wheels | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
type: string | ||
required: true | ||
default: YYYY.MM.DDdevN | ||
description: 'The package version' | ||
release: | ||
type: boolean | ||
required: true | ||
default: false | ||
description: 'Push a release to PyPI' | ||
|
||
jobs: | ||
build_sdist: | ||
name: Build SDist | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: '${{github.workspace}}/lang/python' | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Configure CMake | ||
working-directory: '${{github.workspace}}' | ||
run: cmake -G "Unix Makefiles" -B build -DCMAKE_BUILD_TYPE=Release -DSOURCEPP_BUILD_PYTHON_WRAPPERS=ON -DSOURCEPP_PYTHON_VERSION="${{inputs.version}}" | ||
|
||
- name: Build SDist | ||
run: | | ||
pipx run build --sdist | ||
- name: Check Metadata | ||
run: | | ||
pipx run twine check dist/* | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist-sdist | ||
path: ${{github.workspace}}/lang/python/dist/*.tar.gz | ||
|
||
upload_release: | ||
name: Upload a Release | ||
if: inputs.release | ||
needs: [build_sdist] | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi-release | ||
url: https://pypi.org/p/sourcepp | ||
permissions: | ||
id-token: write | ||
steps: | ||
- name: Download Artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: dist-sdist | ||
path: dist | ||
|
||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
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,15 +1,43 @@ | ||
# IDEs | ||
# IDE | ||
.idea/ | ||
.vs/ | ||
.vscode/ | ||
CMakeSettings.json | ||
|
||
# Project exclude paths | ||
|
||
# Build | ||
build/ | ||
dist/ | ||
cmake-build-*/ | ||
out/ | ||
*.dll | ||
*.ilk | ||
*.pdb | ||
*.pyd | ||
*.so* | ||
|
||
# Generated | ||
# Docs | ||
docs/html/ | ||
|
||
|
||
# Test | ||
test/res/ | ||
test/Helpers.h | ||
|
||
|
||
# Python | ||
.mypy_cache/ | ||
.venv/ | ||
__pycache__/ | ||
wheelhouse/ | ||
*.pyi | ||
*.typed | ||
*.whl | ||
|
||
lang/python/CMakeLists.txt | ||
lang/python/pyproject.toml | ||
lang/python/src/sourcepp/__init__.py | ||
|
||
lang/python/LICENSE | ||
lang/python/README.md | ||
lang/python/THIRDPARTY_LEGAL_NOTICES.txt |
Oops, something went wrong.