-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
- Loading branch information
Showing
177 changed files
with
8,923 additions
and
4,248 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 |
---|---|---|
|
@@ -153,56 +153,93 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- run: python dev/overwrite_dev_versions_with_date.py | ||
- run: mkdir -p output/stim | ||
- run: mkdir -p output/stimcirq | ||
- run: mkdir -p output/sinter | ||
- run: python -m pip install pybind11~=2.11.1 cibuildwheel~=2.16.2 setuptools wheel | ||
- run: python -m cibuildwheel --print-build-identifiers | ||
- run: python -m cibuildwheel --output-dir output/stim | ||
- run: python setup.py sdist | ||
- run: cd glue/cirq && python setup.py sdist | ||
- run: cd glue/sample && python setup.py sdist | ||
- run: mv dist/* output/stim | ||
- run: mv glue/cirq/dist/* output/stimcirq | ||
- run: mv glue/sample/dist/* output/sinter | ||
- uses: actions/upload-artifact@v3 | ||
- run: python -m cibuildwheel --output-dir dist | ||
- uses: actions/[email protected] | ||
with: | ||
name: dist | ||
path: | | ||
./output/stimcirq/*.tar.gz | ||
./output/sinter/*.tar.gz | ||
./output/stim/* | ||
check_sdist_installs: | ||
name: "dist-stim-${{ matrix.os_dist.os }}-${{ matrix.os_dist.dist }}-${{ matrix.os_dist.macosarch }}" | ||
path: dist/* | ||
build_sdist: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- run: python -m pip install pybind11~=2.11.1 cibuildwheel~=2.16.2 setuptools wheel | ||
- run: python -m pip install setuptools pybind11~=2.11.1 | ||
- run: python dev/overwrite_dev_versions_with_date.py | ||
- run: mkdir output | ||
- run: python setup.py sdist | ||
- run: pip install dist/*.tar.gz | ||
- run: cd glue/cirq && python setup.py sdist | ||
- run: cd glue/sample && python setup.py sdist | ||
- uses: actions/[email protected] | ||
with: | ||
name: "dist-sinter" | ||
path: glue/sample/dist/*.tar.gz | ||
- uses: actions/[email protected] | ||
with: | ||
name: "dist-stimcirq" | ||
path: glue/cirq/dist/*.tar.gz | ||
- uses: actions/[email protected] | ||
with: | ||
name: "dist-stim-sdist" | ||
path: dist/*.tar.gz | ||
check_sdist_installs_stim: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- run: python -m pip install pybind11~=2.11.1 cibuildwheel~=2.16.2 setuptools wheel | ||
- run: python setup.py sdist | ||
- run: pip install dist/*.tar.gz | ||
check_sdist_installs_sinter: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- run: python -m pip install setuptools | ||
- run: cd glue/sample && python setup.py sdist | ||
- run: pip install glue/sample/dist/* | ||
- run: python -c "import sinter" | ||
merge_upload_artifacts: | ||
needs: ["build_dist", "build_sdist"] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Merge Artifacts | ||
uses: actions/upload-artifact/merge@v4 | ||
with: | ||
name: dist-stim | ||
pattern: dist-stim-* | ||
upload_dev_release_to_pypi: | ||
needs: ["build_dist"] | ||
needs: ["merge_upload_artifacts"] | ||
if: github.ref == 'refs/heads/main' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/download-artifact@v2 | ||
- uses: actions/[email protected] | ||
with: | ||
name: dist-stim | ||
path: dist-stim | ||
- uses: actions/[email protected] | ||
with: | ||
name: dist-stimcirq | ||
path: dist-stimcirq | ||
- uses: actions/[email protected] | ||
with: | ||
name: dist | ||
path: dist | ||
name: dist-sinter | ||
path: dist-sinter | ||
- uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
packages_dir: dist/stim/ | ||
packages_dir: dist-stim | ||
password: ${{ secrets.pypi_token_stim }} | ||
- uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
packages_dir: dist/stimcirq/ | ||
packages_dir: dist-stimcirq | ||
password: ${{ secrets.pypi_token_stimcirq }} | ||
- uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
packages_dir: dist/sinter/ | ||
packages_dir: dist-sinter | ||
password: ${{ secrets.pypi_token_sinter }} | ||
run_main: | ||
runs-on: ubuntu-latest | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Oops, something went wrong.