File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -207,6 +207,37 @@ jobs:
207207 run : cargo codspeed run
208208 mode : walltime
209209
210+ walltime-macos-test :
211+ runs-on : macos-latest
212+ steps :
213+ - uses : actions/checkout@v4
214+ with :
215+ submodules : true
216+ - uses : moonrepo/setup-rust@v1
217+ with :
218+ cache-target : release
219+ env :
220+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
221+
222+ - run : cargo install --path crates/cargo-codspeed --locked
223+
224+ - name : Build the benchmarks
225+ run : |
226+ # Remove the cargo config else it forces instrumentation mode
227+ rm -f .cargo/config.toml
228+ cargo codspeed build -p codspeed-divan-compat -m walltime
229+
230+ - name : Run the benchmarks
231+ uses : CodSpeedHQ/action@main
232+ env :
233+ MY_ENV_VAR : " YES"
234+ CODSPEED_SKIP_UPLOAD : " true"
235+ with :
236+ run : cargo codspeed run -p codspeed-divan-compat
237+ mode : walltime
238+ # TODO: Remove this once the runner has been released with macos support
239+ runner-version : branch:main
240+
210241 musl-build-check :
211242 strategy :
212243 matrix :
@@ -243,6 +274,7 @@ jobs:
243274 - msrv-check
244275 - analysis-integration-test
245276 - walltime-integration-test
277+ - walltime-macos-test
246278 - musl-build-check
247279 steps :
248280 - uses : re-actors/alls-green@release/v1
You can’t perform that action at this time.
0 commit comments