-
Notifications
You must be signed in to change notification settings - Fork 46
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 #1248 from CQCL/release/1.25.0
Release/1.25.0
- Loading branch information
Showing
31 changed files
with
547 additions
and
231 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
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 |
---|---|---|
|
@@ -37,7 +37,8 @@ jobs: | |
|
||
build_Linux_aarch64_wheels: | ||
name: Build manylinux aarch64 | ||
runs-on: ['self-hosted', 'macOS', 'ARM64'] | ||
# We need the one with 12GB RAM to build pytket. | ||
runs-on: 'buildjet-8vcpu-ubuntu-2204-arm' | ||
strategy: | ||
matrix: | ||
python3-version: ['10', '11', '12'] | ||
|
@@ -48,28 +49,18 @@ jobs: | |
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
- name: Set up container | ||
run: | | ||
export DOCKER_HOST=unix://${HOME}/.docker/run/docker.sock | ||
docker create --name linux_build -i -v /:/host quay.io/pypa/manylinux_2_28_aarch64:latest /bin/bash | ||
docker cp . linux_build:/tket/ | ||
- name: Run build | ||
run: | | ||
export DOCKER_HOST=unix://${HOME}/.docker/run/docker.sock | ||
docker start linux_build | ||
docker exec -e PY_TAG="cp3${{ matrix.python3-version }}-cp3${{ matrix.python3-version }}" -e CONAN_PROFILE=linux-armv8-gcc12 linux_build /bin/bash -c "/tket/.github/workflows/linuxbuildwheel" | ||
mkdir wheelhouse | ||
docker cp linux_build:/tket/pytket/audited/. wheelhouse/ | ||
- name: Remove container | ||
if: always() | ||
run: | | ||
export DOCKER_HOST=unix://${HOME}/.docker/run/docker.sock | ||
docker rm --force -v linux_build | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: Linux_aarch64_3.${{ matrix.python3-version }}_wheel | ||
path: wheelhouse/ | ||
- name: Remove directory | ||
if: always() | ||
run: rm -rf wheelhouse | ||
|
||
build_macos_wheels: | ||
name: Build macos wheels | ||
|
@@ -178,7 +169,7 @@ jobs: | |
cp ${PROFILE_PATH} ${DEFAULT_PROFILE_PATH} | ||
conan remote add tket-libs https://quantinuumsw.jfrog.io/artifactory/api/conan/tket1-libs --index 0 | ||
- name: Build tket | ||
run: conan create tket --user tket --channel stable --build=missing -o boost/*:header_only=True -o tklog/*:shared=True -o tket/*:shared=True -tf `"`" | ||
run: conan create tket --user tket --channel stable --build=missing -o boost/*:header_only=True -o tklog/*:shared=True -o tket/*:shared=True -tf "" | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
|
@@ -227,37 +218,39 @@ jobs: | |
test_Linux_aarch64_wheels: | ||
name: Test linux aarch64 wheels | ||
needs: build_Linux_aarch64_wheels | ||
runs-on: ['self-hosted', 'macOS', 'ARM64'] | ||
runs-on: 'buildjet-4vcpu-ubuntu-2204-arm' | ||
strategy: | ||
matrix: | ||
python3-version: ['10', '11', '12'] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: tket | ||
- name: Set up Python 3.${{ matrix.python3-version }} | ||
# Use deadsnakes/action because Python for Linux/ARM is not available with | ||
# actions/setup-python. | ||
# Python 3.10 is the default python on Ubuntu 22.04, so this combination | ||
# is not available from deadsnakes: use the default python in this case. | ||
if: matrix.python3-version != '10' | ||
uses: deadsnakes/[email protected] | ||
with: | ||
python-version: "3.${{ matrix.python3-version }}" | ||
- name: Download wheel | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: Linux_aarch64_3.${{ matrix.python3-version }}_wheel | ||
path: wheelhouse/ | ||
- name: Set up container | ||
- name: Install wheel | ||
run: pip install wheelhouse/pytket-*.whl | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: tket | ||
- name: Setup tests | ||
run: | | ||
export DOCKER_HOST=unix://${HOME}/.docker/run/docker.sock | ||
docker create --name linux_build -i -v /:/host quay.io/pypa/manylinux_2_28_aarch64:latest /bin/bash | ||
docker cp . linux_build:/tket/ | ||
cd tket/pytket/tests | ||
pip install -U -r requirements.txt | ||
- name: Run tests | ||
run: | | ||
export DOCKER_HOST=unix://${HOME}/.docker/run/docker.sock | ||
docker start linux_build | ||
docker exec -e PY_TAG="cp3${{ matrix.python3-version }}-cp3${{ matrix.python3-version }}" linux_build /bin/bash -c "/tket/.github/workflows/linuxtestwheel" | ||
- name: Remove container | ||
if: always() | ||
run: | | ||
export DOCKER_HOST=unix://${HOME}/.docker/run/docker.sock | ||
docker rm --force -v linux_build | ||
- name: Remove directory | ||
if: always() | ||
run: rm -rf wheelhouse | ||
run: cd tket/pytket/tests && pytest --ignore=simulator/ | ||
|
||
test_macos_wheels: | ||
name: Test macos wheels | ||
|
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.