-
Notifications
You must be signed in to change notification settings - Fork 287
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
43 changed files
with
1,481 additions
and
1,492 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 |
---|---|---|
@@ -1,25 +1,77 @@ | ||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [published] | ||
push: | ||
tags: ["v*"] | ||
|
||
jobs: | ||
deploy: | ||
build_wheels: | ||
name: Build wheels for cp${{ matrix.python-version }}-${{ matrix.os-platform[1] }} | ||
runs-on: ${{ matrix.os-platform[0] }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [38, 39, 310, 311, 312] | ||
os-platform: | ||
[ | ||
[ubuntu-latest, manylinux_x86_64], | ||
[ubuntu-latest, manylinux_aarch64], | ||
[windows-latest, win_amd64], | ||
[macos-12, macosx_x86_64], | ||
[macos-14, macosx_arm64], | ||
] | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
with: | ||
submodules: "true" | ||
|
||
- name: Set up QEMU | ||
if: matrix.os-platform[1] == 'manylinux_aarch64' | ||
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0 | ||
with: | ||
platforms: arm64 | ||
|
||
- name: Build wheels | ||
uses: pypa/cibuildwheel@bd033a44476646b606efccdd5eed92d5ea1d77ad # v2.20.0 | ||
env: | ||
CIBW_BUILD: cp${{ matrix.python-version }}-${{ matrix.os-platform[1] }} | ||
|
||
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6 | ||
with: | ||
name: artifact-cp${{ matrix.python-version }}-${{ matrix.os-platform[1] }} | ||
path: wheelhouse/*.whl | ||
retention-days: 1 | ||
|
||
build_sdist: | ||
name: Build sdist | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
|
||
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Build sdist | ||
run: | | ||
python -m pip install build | ||
python -m build --sdist --outdir dist | ||
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6 | ||
with: | ||
path: dist/*.tar.gz | ||
|
||
upload_to_pypi: | ||
name: Upload to PyPI | ||
needs: [build_wheels, build_sdist] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
- name: Set up Python | ||
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 | ||
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | ||
with: | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
run: python -m pip install build wheel | ||
- name: Build package | ||
run: python -m build -sw | ||
- name: Publish package | ||
name: artifact | ||
path: dist | ||
|
||
- name: Publish package to PyPI | ||
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # v1.9.0 |
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 |
---|---|---|
|
@@ -24,3 +24,4 @@ nbs/.last_checked | |
.idea | ||
mlruns/ | ||
.luarc.json | ||
*.so |
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,3 @@ | ||
[submodule "external_libs/eigen"] | ||
path = external_libs/eigen | ||
url = https://gitlab.com/libeigen/eigen |
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,6 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"C_Cpp.formatting": "clangFormat", | ||
"C_Cpp.clang_format_sortIncludes": true, | ||
"C_Cpp.default.cppStandard": "c++17" | ||
} |
Oops, something went wrong.