-
-
Notifications
You must be signed in to change notification settings - Fork 9
NaN tests + Workflow + README fixes #114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7a5a4bf
updated readme and tests as per sleef 3.8
SwayamInSync 07b00f9
switching to pypi from testpypi
SwayamInSync d171dd6
switching to trusted publishing
SwayamInSync 31294c7
changing release token
SwayamInSync 662112e
commenting github specific release for now
SwayamInSync 930a8e2
turning off parallel cmake build in windows
SwayamInSync bd90748
updating readme
SwayamInSync File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -148,7 +148,7 @@ jobs: | |
git clone --branch 3.8 https://github.com/shibatch/sleef.git | ||
cd sleef | ||
cmake -S . -B build -G "Visual Studio 17 2022" -A ${{ matrix.architecture == 'x86' && 'Win32' || 'x64' }} -DSLEEF_BUILD_QUAD:BOOL=ON -DSLEEF_BUILD_SHARED_LIBS:BOOL=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON | ||
cmake --build build --config Release --parallel | ||
cmake --build build --config Release | ||
cmake --install build --prefix "C:/sleef" --config Release | ||
|
||
- name: Setup build environment | ||
|
@@ -194,54 +194,61 @@ jobs: | |
path: ./quaddtype/wheelhouse/*.whl | ||
name: wheels-windows-${{ matrix.architecture }} | ||
|
||
publish_to_testpypi: | ||
name: Publish to TestPyPI | ||
publish_to_pypi: | ||
name: Publish to PyPI | ||
needs: [build_wheels_linux, build_wheels_macos, build_wheels_windows] | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/quaddtype-v') | ||
|
||
environment: | ||
name: quadtype_release | ||
url: https://pypi.org/p/numpy-quaddtype | ||
|
||
permissions: | ||
id-token: write # IMPORTANT: mandatory for trusted publishing | ||
|
||
steps: | ||
- name: Download all workflow run artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: dist | ||
- name: Publish to TestPyPI | ||
uses: pypa/[email protected] | ||
|
||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
repository-url: https://test.pypi.org/legacy/ | ||
packages-dir: dist/* | ||
|
||
create_release: | ||
name: Create Release | ||
needs: [build_wheels_linux, build_wheels_macos, build_wheels_windows] | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/quaddtype-v') | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download all workflow run artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: artifacts | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Release Assets | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: ./artifacts/**/*.whl | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
# With the current setup, we are not creating a release on GitHub. | ||
# create_release: | ||
# name: Create Release | ||
# needs: [build_wheels_linux, build_wheels_macos, build_wheels_windows] | ||
# runs-on: ubuntu-latest | ||
# if: startsWith(github.ref, 'refs/tags/quaddtype-v') | ||
|
||
# steps: | ||
# - name: Checkout code | ||
# uses: actions/checkout@v2 | ||
|
||
# - name: Download all workflow run artifacts | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# path: artifacts | ||
|
||
# - name: Create Release | ||
# id: create_release | ||
# uses: actions/create-release@v1 | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.QUADDTYPE_GITHUB_TOKEN }} | ||
# with: | ||
# tag_name: ${{ github.ref }} | ||
# release_name: Release ${{ github.ref }} | ||
# draft: false | ||
# prerelease: false | ||
|
||
# - name: Upload Release Assets | ||
# uses: softprops/action-gh-release@v1 | ||
# if: startsWith(github.ref, 'refs/tags/') | ||
# with: | ||
# files: ./artifacts/**/*.whl | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.QUADDTYPE_GITHUB_TOKEN }} |
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.