Debian Codegraph @

.github/workflows/go-benchmarks.yml

raw
1 name: CodSpeed Benchmarks
2
3 on:
4 push:
5 branches:
6 - "main"
7 pull_request:
8 workflow_dispatch:
9
10 jobs:
11 benchmarks:
12 name: Run benchmarks
13 runs-on: ubuntu-latest
14 steps:
15 - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
16 - run: ./.github/workflows/scripts/free-disk-space.sh
17 - uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
18 - name: Setup Go
19 uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
20 with:
21 go-version: stable
22 cache: false
23 - name: Cache Go
24 id: go-cache
25 uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
26 with:
27 path: |
28 ~/go/bin
29 ~/go/pkg/mod
30 key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }}
31 - name: Run the benchmarks
32 uses: CodSpeedHQ/action@346a2d8a8d9d38909abd0bc3d23f773110f076ad # v4.4.1
33 with:
34 mode: walltime
35 run: make for-all-target TARGET="timebenchmark"
36 cache-instruments: false