-
Notifications
You must be signed in to change notification settings - Fork 2
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
13 changed files
with
206 additions
and
42 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 |
---|---|---|
@@ -1,3 +1,14 @@ | ||
build --copt=-g0 --copt=-O3 --copt=-DNDEBUG | ||
build --action_env=BAZEL_LINKLIBS=-l%:libstdc++.a:-lm | ||
build --action_env=BAZEL_LINKOPTS=-static-libgcc | ||
build:linux --copt=-g0 --copt=-O3 --copt=-DNDEBUG | ||
build:macos_x86_64 --copt=-g0 --copt=-O3 --copt=-DNDEBUG | ||
build:macos_arm64 --copt=-g0 --copt=-O3 --copt=-DNDEBUG | ||
build:windows_x86_64 -c opt --compiler=clang-cl | ||
|
||
build:linux --action_env=BAZEL_LINKLIBS=-l%:libstdc++.a:-lm | ||
build:linux --action_env=BAZEL_LINKOPTS=-static-libgcc | ||
build:linux --define os=linux --define cpu=x86_64 | ||
|
||
build:macos_x86_64 --define os=macos --define cpu=x86_64 | ||
build:macos_arm64 --define os=macos --define cpu=arm64 | ||
|
||
build:windows_x86_64 --define os=windows --define cpu=x86_64 | ||
build:windows_arm64 --define os=windows --define cpu=arm64 |
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,45 @@ | ||
name: Release for Macos | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+\.[0-9]+\.[0-9]+' | ||
|
||
jobs: | ||
release: | ||
runs-on: macos-11 | ||
strategy: | ||
matrix: | ||
python-version: ['3.9', '3.10', '3.11', '3.12'] | ||
steps: | ||
- name: Cancel previous run | ||
uses: styfle/cancel-workflow-action@0.9.1 | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Build | ||
run: | | ||
pip install -r requirements.txt | ||
bazel build --config=macos_x86_64 --remote_cache=http://${{ secrets.BAZEL_CACHE }}:8080 @maple2jax//:jax_xc_wheel | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@main | ||
with: | ||
name: macos_wheel | ||
path: bazel-bin/external/maple2jax/*.whl | ||
publish: | ||
runs-on: ubuntu-latest | ||
needs: release | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@main | ||
with: | ||
name: macos_wheel | ||
path: dist | ||
- name: Publish package to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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,31 @@ | ||
name: Release for Windows | ||
|
||
# Don't run yet, it fails at linking, very difficult to debug with only a remote runner. | ||
# on: [push] | ||
|
||
jobs: | ||
release: | ||
runs-on: windows-2019 | ||
strategy: | ||
matrix: | ||
python-version: ['3.9'] | ||
steps: | ||
- name: Cancel previous run | ||
uses: styfle/cancel-workflow-action@0.9.1 | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Build | ||
run: | | ||
pip install -r requirements.txt | ||
bazel build --config=windows_x86_64 --remote_cache=http://${{ secrets.BAZEL_CACHE }}:8080 @maple2jax//:jax_xc_wheel | ||
shell: pwsh | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@main | ||
with: | ||
name: macos_wheel | ||
path: bazel-bin/external/maple2jax/*.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
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
from .functionals import * # noqa | ||
from . import experimental # noqa | ||
|
||
__version__ = "0.0.9" | ||
__version__ = "0.0.10" |
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
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 |
---|---|---|
|
@@ -4,7 +4,6 @@ tensorflow-probability | |
jinja2 | ||
absl-py | ||
numpy | ||
pyscf | ||
regex | ||
jaxtyping | ||
autofd |