Skip to content

Commit 725d6e7

Browse files
(DO NOT MERGE) ci: only run instrumentation integration tests
1 parent 2b6afb9 commit 725d6e7

File tree

1 file changed

+8
-107
lines changed

1 file changed

+8
-107
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -7,59 +7,16 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
lint:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v4
14-
- uses: pre-commit/[email protected]
15-
with:
16-
extra_args: --all-files
17-
18-
tests:
19-
runs-on: ubuntu-latest
20-
steps:
21-
- name: Checkout code
22-
uses: actions/checkout@v3
23-
with:
24-
submodules: "recursive"
25-
26-
- name: Cache build
27-
uses: actions/cache@v3
28-
with:
29-
path: core/build-tests
30-
key: ${{ runner.os }}-build-tests-${{ hashFiles('**/CMakeLists.txt') }}
31-
32-
- name: Create build directory
33-
run: mkdir -p core/build-tests
34-
35-
- name: Build tests
36-
run: |
37-
cd core/build-tests
38-
cmake .. -DENABLE_TESTS=ON
39-
make -j
40-
41-
- name: Run tests
42-
run: |
43-
cd core/build-tests
44-
GTEST_OUTPUT=json:test-results/ ctest
45-
46-
- name: Upload test results
47-
uses: actions/upload-artifact@v4
48-
if: failure()
49-
with:
50-
name: test_results
51-
path: ${{runner.workspace}}/core/build-tests/test/test-results/**/*.json
52-
5310
cmake-integration-tests:
5411
strategy:
5512
matrix:
5613
include:
5714
- codspeed-mode: "instrumentation"
5815
runner: "ubuntu-latest"
59-
- codspeed-mode: "walltime"
60-
runner: "codspeed-macro"
61-
- codspeed-mode: "off"
62-
runner: "ubuntu-latest"
16+
# - codspeed-mode: "walltime"
17+
# runner: "codspeed-macro"
18+
# - codspeed-mode: "off"
19+
# runner: "ubuntu-latest"
6320
runs-on: ${{ matrix.runner }}
6421
steps:
6522
- name: Checkout code
@@ -96,10 +53,10 @@ jobs:
9653
include:
9754
- codspeed-mode: "instrumentation"
9855
runner: "ubuntu-latest"
99-
- codspeed-mode: "walltime"
100-
runner: "codspeed-macro"
101-
- codspeed-mode: "off"
102-
runner: "ubuntu-latest"
56+
# - codspeed-mode: "walltime"
57+
# runner: "codspeed-macro"
58+
# - codspeed-mode: "off"
59+
# runner: "ubuntu-latest"
10360
runs-on: ${{ matrix.runner }}
10461
steps:
10562
- uses: actions/checkout@v4
@@ -127,59 +84,3 @@ jobs:
12784
mode: ${{ matrix.codspeed-mode }}
12885
run: bazel run //examples/google_benchmark_bazel:my_benchmark --//core:codspeed_mode=${{ matrix.codspeed-mode }}
12986
token: ${{ secrets.CODSPEED_TOKEN }}
130-
131-
windows-cmake-build:
132-
strategy:
133-
matrix:
134-
codspeed-mode: ["off", "walltime"]
135-
runs-on: windows-latest
136-
steps:
137-
- name: Checkout code
138-
uses: actions/checkout@v3
139-
with:
140-
submodules: "recursive"
141-
142-
- name: Cache build
143-
uses: actions/cache@v3
144-
with:
145-
path: examples/google_benchmark_cmake/build
146-
key: ${{ runner.os }}-build-${{ matrix.codspeed-mode }}-${{ hashFiles('**/CMakeLists.txt') }}
147-
148-
- name: Create build directory
149-
run: |
150-
if (-not (Test-Path examples\google_benchmark_cmake\build)) {
151-
mkdir examples\google_benchmark_cmake\build
152-
}
153-
shell: pwsh
154-
155-
- name: Build benchmark example
156-
run: |
157-
cd examples\google_benchmark_cmake\build
158-
cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} ..
159-
cmake --build . --config Release
160-
shell: pwsh
161-
162-
windows-bazel-build:
163-
strategy:
164-
matrix:
165-
codspeed-mode: ["off", "walltime"]
166-
runs-on: windows-latest
167-
steps:
168-
- uses: actions/checkout@v4
169-
with:
170-
submodules: "recursive"
171-
172-
- name: Set up Bazel
173-
uses: bazel-contrib/[email protected]
174-
with:
175-
# Avoid downloading Bazel every time.
176-
bazelisk-cache: true
177-
# Store build cache per workflow.
178-
disk-cache: ${{ github.workflow }}
179-
# Share repository cache between workflows.
180-
repository-cache: true
181-
182-
- name: Build benchmark example
183-
run: |
184-
bazel build //examples/google_benchmark_bazel:my_benchmark --//core:codspeed_mode=${{ matrix.codspeed-mode }}
185-
shell: pwsh

0 commit comments

Comments
 (0)