@@ -26,42 +26,40 @@ jobs:
26
26
steps :
27
27
- run : echo "Publishing wheels"
28
28
29
- # macos:
30
- # runs-on: macos-12
31
- # needs: [is-python-release, should-publish-wheels]
32
- # env:
33
- # CXXFLAGS: "-std=c++11 -stdlib=libc++"
34
- # steps:
35
- # - uses: actions/checkout@v2
36
- # - uses: actions/setup-python@v4
37
- # with:
38
- # python-version: ${{ matrix.python-version }}
39
- # - name: Install protoc
40
- # uses: arduino/setup-protoc@v1
41
- # with:
42
- # repo-token: ${{ secrets.GITHUB_TOKEN }}
43
- # version: '3.20.1'
44
- # - name: Patch package metadata for grpc-web
45
- # working-directory: ./crates/python
46
- # run: |
47
- # pip install toml
48
- # python scripts/patch_package_name.py
49
- # cd ../..
50
- # python crates/python/scripts/patch_hyper_proxy.py
51
- # - name: Build wheels - universal2
52
- # # universal2 supports both x86_64 and aarch64
53
- # uses: messense/maturin-action@v1
54
- # with:
55
- # args: -i 3.8 3.9 3.10 3.11 3.12 --release --target universal2-apple-darwin --manifest-path crates/python/Cargo.toml --features grpc-web --out dist
56
- # docker-options: -e CI
57
- # - name: Install wheel
58
- # run: |
59
- # pip install qcs-sdk-python --find-links dist --force-reinstall
60
- # - name: Upload wheels
61
- # uses: actions/upload-artifact@v3
62
- # with:
63
- # name: wheels-grpc-web
64
- # path: dist
29
+ macos :
30
+ runs-on : macos-12
31
+ needs : [is-python-release, should-publish-wheels]
32
+ env :
33
+ CXXFLAGS : " -std=c++11 -stdlib=libc++"
34
+ steps :
35
+ - uses : actions/checkout@v2
36
+ - uses : actions/setup-python@v4
37
+ with :
38
+ python-version : ${{ matrix.python-version }}
39
+ - name : Install protoc
40
+ uses : arduino/setup-protoc@v1
41
+ with :
42
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
43
+ version : ' 3.20.1'
44
+ - name : Patch package metadata for grpc-web
45
+ run : |
46
+ pip install toml
47
+ python crates/python/scripts/patch_grpc_web.py
48
+ cargo update
49
+ - name : Build wheels - universal2
50
+ # universal2 supports both x86_64 and aarch64
51
+ uses : messense/maturin-action@v1
52
+ with :
53
+ args : -i 3.8 3.9 3.10 3.11 3.12 --release --target universal2-apple-darwin --manifest-path crates/python/Cargo.toml --features grpc-web --out dist
54
+ docker-options : -e CI
55
+ - name : Install wheel
56
+ run : |
57
+ pip install qcs-sdk-python --find-links dist --force-reinstall
58
+ - name : Upload wheels
59
+ uses : actions/upload-artifact@v3
60
+ with :
61
+ name : wheels-grpc-web
62
+ path : dist
65
63
66
64
linux :
67
65
runs-on : ubuntu-latest
83
81
repo-token : ${{ secrets.GITHUB_TOKEN }}
84
82
version : ' 3.20.1'
85
83
- name : Patch package metadata for grpc-web
86
- working-directory : ./crates/python
87
84
run : |
88
85
pip install toml
89
- python scripts/patch_package_name.py
90
- cd ../..
91
- python crates/python/scripts/patch_hyper_proxy.py
86
+ python crates/python/scripts/patch_grpc_web.py
92
87
cargo update
93
88
- name : Build wheels
94
89
uses : messense/maturin-action@v1
@@ -123,12 +118,10 @@ jobs:
123
118
repo-token : ${{ secrets.GITHUB_TOKEN }}
124
119
version : ' 3.20.1'
125
120
- name : Patch package metadata for grpc-web
126
- working-directory : ./crates/python
127
121
run : |
128
122
pip install toml
129
- python scripts/patch_package_name.py
130
- cd ../..
131
- python crates/python/scripts/patch_hyper_proxy.py
123
+ python crates/python/scripts/patch_grpc_web.py
124
+ cargo update
132
125
- name : Build sdist
133
126
uses : messense/maturin-action@v1
134
127
with :
0 commit comments