@@ -53,25 +53,41 @@ jobs:
53
53
MACOSX_DEPLOYMENT_TARGET : " 10.15"
54
54
CIBW_BUILD : " ${{ matrix.os_dist.dist }}"
55
55
CIBW_ARCHS_MACOS : " ${{ matrix.os_dist.macosarch }}"
56
- CIBW_TEST_REQUIRES : pytest stim sinter pygltflib
56
+ CIBW_TEST_REQUIRES : pytest stim~=1.14 sinter pygltflib
57
57
CIBW_TEST_COMMAND : pytest {project}/src
58
58
steps :
59
59
- uses : actions/checkout@v3
60
60
- uses : actions/setup-python@v3
61
61
- run : python tools/overwrite_dev_versions_with_date.py
62
- - run : mkdir -p output/stim
63
- - run : mkdir -p output/stimcirq
64
- - run : mkdir -p output/sinter
65
62
- run : python -m pip install pybind11~=2.11.1 cibuildwheel~=2.16.2 setuptools
66
63
- run : python -m cibuildwheel --print-build-identifiers
67
64
- run : python -m cibuildwheel --output-dir output/chromobius
65
+ - uses : actions/upload-artifact@v4.4.0
66
+ with :
67
+ name : " dist-chromobius-${{ matrix.os_dist.os }}-${{ matrix.os_dist.dist }}-${{ matrix.os_dist.macosarch }}"
68
+ path : dist/*
69
+ build_sdist :
70
+ runs-on : ubuntu-latest
71
+ steps :
72
+ - uses : actions/checkout@v3
73
+ - uses : actions/setup-python@v3
74
+ - run : python -m pip install setuptools pybind11~=2.11.1
75
+ - run : python tools/overwrite_dev_versions_with_date.py
76
+ - run : mkdir output
68
77
- run : python setup.py sdist
69
- - run : mv dist/* output/chromobius
70
- - uses : actions/upload-artifact@v3
78
+ - uses : actions/upload-artifact@v4.4.0
71
79
with :
72
- name : dist
73
- path : |
74
- ./output/chromobius/*
80
+ name : " dist-chromobius-sdist"
81
+ path : dist/*.tar.gz
82
+ merge_upload_artifacts :
83
+ needs : ["build_dist", "build_sdist"]
84
+ runs-on : ubuntu-latest
85
+ steps :
86
+ - name : Merge Artifacts
87
+ uses : actions/upload-artifact/merge@v4
88
+ with :
89
+ name : dist-chromobius
90
+ pattern : dist-chromobius-*
75
91
check_sdist_installs :
76
92
runs-on : ubuntu-latest
77
93
steps :
@@ -90,14 +106,19 @@ jobs:
90
106
build_bazel :
91
107
runs-on : ubuntu-latest
92
108
steps :
93
- - uses : actions/checkout@v1
94
- - uses : bazelbuild/setup-bazelisk@v1
109
+ - uses : actions/checkout@v3
110
+ - uses : bazel-contrib/setup-bazel@0.8.5
111
+ with :
112
+ bazelisk-cache : true
113
+ disk-cache : ${{ github.workflow }}
114
+ repository-cache : true
115
+ bazelisk-version : 1.x
95
116
- run : bazel build :all
96
117
- run : bazel test :chromobius_test
97
118
build_clang :
98
119
runs-on : ubuntu-20.04
99
120
steps :
100
- - uses : actions/checkout@v1
121
+ - uses : actions/checkout@v3
101
122
- run : |
102
123
cd ..
103
124
git clone https://github.com/google/googletest.git -b release-1.12.1
@@ -115,14 +136,14 @@ jobs:
115
136
perf :
116
137
runs-on : ubuntu-latest
117
138
steps :
118
- - uses : actions/checkout@v1
139
+ - uses : actions/checkout@v3
119
140
- run : cmake .
120
141
- run : make chromobius_perf -j 2
121
142
- run : out/chromobius_perf
122
143
test :
123
144
runs-on : ubuntu-latest
124
145
steps :
125
- - uses : actions/checkout@v1
146
+ - uses : actions/checkout@v3
126
147
- run : |
127
148
cd ..
128
149
git clone https://github.com/google/googletest.git -b release-1.12.1
@@ -136,7 +157,7 @@ jobs:
136
157
test_o3 :
137
158
runs-on : ubuntu-latest
138
159
steps :
139
- - uses : actions/checkout@v1
160
+ - uses : actions/checkout@v3
140
161
- run : |
141
162
cd ..
142
163
git clone https://github.com/google/googletest.git -b release-1.12.1
@@ -152,7 +173,12 @@ jobs:
152
173
steps :
153
174
- uses : actions/checkout@v3
154
175
- uses : actions/setup-python@v3
155
- - uses : bazelbuild/setup-bazelisk@v1
176
+ - uses : bazel-contrib/setup-bazel@0.8.5
177
+ with :
178
+ bazelisk-cache : true
179
+ disk-cache : ${{ github.workflow }}
180
+ repository-cache : true
181
+ bazelisk-version : 1.x
156
182
- run : bazel build :chromobius_dev_wheel
157
183
- run : pip install bazel-bin/chromobius-0.0.dev0-py3-none-any.whl
158
184
- run : diff <(python tools/gen_chromobius_api_reference.py -dev) doc/chromobius_api_reference.md
@@ -172,10 +198,15 @@ jobs:
172
198
steps :
173
199
- uses : actions/checkout@v3
174
200
- uses : actions/setup-python@v3
175
- - uses : bazelbuild/setup-bazelisk@v1
201
+ - uses : bazel-contrib/setup-bazel@0.8.5
202
+ with :
203
+ bazelisk-cache : true
204
+ disk-cache : ${{ github.workflow }}
205
+ repository-cache : true
206
+ bazelisk-version : 1.x
176
207
- run : bazel build :chromobius_dev_wheel
177
208
- run : pip install bazel-bin/chromobius-0.0.dev0-py3-none-any.whl
178
- - run : pip install pytest stim sinter pygltflib
209
+ - run : pip install pytest stim~=1.14 sinter pygltflib
179
210
- run : pytest src
180
211
- run : tools/doctest_proper.py --module chromobius
181
212
upload_dev_release_to_pypi :
0 commit comments