-
Notifications
You must be signed in to change notification settings - Fork 5
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 #3 from JiantingFeng/main
Chore and CI Enhancements
- Loading branch information
Showing
5 changed files
with
34 additions
and
471 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,25 +8,14 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, windows-2019] | ||
os: [ubuntu-latest, windows-latest] | ||
|
||
steps: | ||
# Install poetry | ||
- uses: actions/checkout@v4 | ||
- name: Install poetry | ||
run: pipx install poetry | ||
|
||
# Used to host poetry | ||
- uses: actions/setup-python@v3 | ||
- name: Lock and install dependencies | ||
run: | | ||
poetry lock | ||
poetry install | ||
- name: Build wheel package | ||
run: poetry run python setup.py bdist_wheel | ||
- uses: pypa/[email protected] | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: rehline-wheels-${{ matrix.os }}-${{ strategy.job-index }} | ||
path: ./dist | ||
path: ./wheelhouse/*.whl |
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,9 @@ | ||
cmake_minimum_required(VERSION 3.0) | ||
project(rehline LANGUAGES CXX) | ||
|
||
set(PYBIND11_FINDPYTHON ON) | ||
find_package(pybind11 CONFIG REQUIRED) | ||
|
||
pybind11_add_module(rehline MODULE src/rehline.cpp) | ||
|
||
install(TARGETS rehline DESTINATION .) |
Oops, something went wrong.