-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (51 loc) · 1.65 KB
/
hqs-build-deploy-rust-pyo3.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: HQS build and deploy for rust pyo3 repos
on:
workflow_dispatch:
release:
types: [created]
jobs:
deploy_cratesio:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# - uses: Swatinem/rust-cache@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
default: true
- name: setup cargo
run: |
cargo login ${{ secrets.CRATES_IO_API_TOKEN }}
cargo publish --manifest-path=roqoqo-aqt/Cargo.toml
sleep 45
cargo publish --manifest-path=qoqo_aqt/Cargo.toml
# Build linux wheels and upload them to PyPi
build_maturin_builds_linux:
name: maturin_build-linux
needs: deploy_cratesio
uses: HQSquantumsimulations/reusable_workflows/.github/workflows/reusable_build_maturin_linux.yml@main
with:
py_interface_folder: "qoqo_aqt"
deploy: true
# Whether to build for aarch64. Can fail if there are C/C++ dependencies
build_for_arm: true
secrets: inherit
# Build macos wheels and upload them to PyPi
build_maturin_builds_macos:
name: maturin_build-macos
needs: deploy_cratesio
uses: HQSquantumsimulations/reusable_workflows/.github/workflows/reusable_build_maturin_macos.yml@main
with:
py_interface_folder: "qoqo_aqt"
deploy: true
secrets: inherit
# Build windows wheels and upload them to PyPi
build_maturin_builds_windows:
name: maturin_build-windows
needs: deploy_cratesio
uses: HQSquantumsimulations/reusable_workflows/.github/workflows/reusable_build_maturin_windows.yml@main
with:
py_interface_folder: "qoqo_aqt"
deploy: true
secrets: inherit