-
-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (40 loc) · 939 Bytes
/
rustbench.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
on:
pull_request:
paths:
- '**.rs'
- .github/workflows/rustbench.yml
- '**/Cargo.toml'
push:
branches: [main]
workflow_dispatch:
name: Benchmark
permissions:
pull-requests: write
jobs:
benchmark:
runs-on: ubuntu-latest
services:
languagetool:
image: erikvl87/languagetool:latest
ports:
- 8010:8010
env:
Java_Xms: 512m
Java_Xmx: 2g
env:
LANGUAGETOOL_HOSTNAME: http://localhost
LANGUAGETOOL_PORT: 8010
steps:
- uses: actions/checkout@v3
- name: Setup rust toolchain, cache and cargo-codspeed binary
uses: moonrepo/setup-rust@v0
with:
channel: stable
cache-target: release
bins: cargo-codspeed
- name: Build the benchmark target(s)
run: cargo codspeed build
- name: Run the benchmarks
uses: CodSpeedHQ/action@v3
with:
run: cargo codspeed run