Skip to content

Commit cc68d92

Browse files
committed
ci: add memory mode
1 parent 8750df0 commit cc68d92

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,17 @@ jobs:
4343
env:
4444
CODSPEED_GO_PKG_VERSION: ${{ github.head_ref || github.ref_name }}
4545
46-
compat-integration-test-walltime:
47-
runs-on: codspeed-macro
46+
compat-integration-test:
4847
strategy:
4948
matrix:
5049
target: [example, example/compat, example/timing, example/very/nested/module, example/external]
50+
mode: [walltime, memory]
51+
include:
52+
- mode: walltime
53+
runner: codspeed-macro
54+
- mode: memory
55+
runner: ubuntu-latest
56+
runs-on: ${{ matrix.runner }}
5157
steps:
5258
- uses: actions/checkout@v4
5359
with:
@@ -62,7 +68,7 @@ jobs:
6268
env:
6369
CODSPEED_GO_PKG_VERSION: ${{ github.head_ref || github.ref_name }}
6470
with:
65-
mode: walltime
71+
mode: ${{ matrix.mode }}
6672
working-directory: example
6773
run: cargo r --release --manifest-path ../go-runner/Cargo.toml -- test -bench=. ${{ matrix.target }}
6874

@@ -99,7 +105,7 @@ jobs:
99105
needs:
100106
- lint
101107
- tests
102-
- compat-integration-test-walltime
108+
- compat-integration-test
103109
- go-runner-benchmarks
104110
steps:
105111
- uses: re-actors/alls-green@release/v1

0 commit comments

Comments
 (0)