Skip to content

Commit 8c83204

Browse files
iterate
1 parent a224dec commit 8c83204

File tree

8 files changed

+200
-198
lines changed

8 files changed

+200
-198
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

.github/workflows/ci.yml

Lines changed: 196 additions & 196 deletions
Original file line numberDiff line numberDiff line change
@@ -1,196 +1,196 @@
1-
name: CI
2-
3-
on:
4-
push:
5-
branches: [main]
6-
pull_request:
7-
workflow_dispatch:
8-
9-
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 -DCODSPEED_STRICT_WARNINGS=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-
53-
cmake-integration-tests:
54-
strategy:
55-
matrix:
56-
include:
57-
- codspeed-mode: "instrumentation"
58-
runner: "ubuntu-latest"
59-
- codspeed-mode: "walltime"
60-
runner: "codspeed-macro"
61-
- codspeed-mode: "off"
62-
runner: "ubuntu-latest"
63-
runs-on: ${{ matrix.runner }}
64-
steps:
65-
- name: Checkout code
66-
uses: actions/checkout@v3
67-
with:
68-
submodules: "recursive"
69-
70-
- name: Cache build
71-
uses: actions/cache@v3
72-
with:
73-
path: examples/google_benchmark_cmake/build
74-
key: ${{ runner.os }}-build-${{ matrix.codspeed-mode }}-${{ hashFiles('**/CMakeLists.txt') }}
75-
76-
- name: Create build directory
77-
run: mkdir -p examples/google_benchmark_cmake/build
78-
79-
- name: Build benchmark example
80-
run: |
81-
cd examples/google_benchmark_cmake/build
82-
cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} -DCODSPEED_STRICT_WARNINGS=ON ..
83-
make -j
84-
85-
- name: Run the benchmarks
86-
uses: CodSpeedHQ/action@main
87-
if: matrix.codspeed-mode != 'off'
88-
with:
89-
mode: ${{ matrix.codspeed-mode }}
90-
run: examples/google_benchmark_cmake/build/benchmark_example
91-
token: ${{ secrets.CODSPEED_TOKEN }}
92-
93-
bazel-integration-tests:
94-
strategy:
95-
matrix:
96-
include:
97-
- codspeed-mode: "instrumentation"
98-
runner: "ubuntu-latest"
99-
- codspeed-mode: "walltime"
100-
runner: "codspeed-macro"
101-
- codspeed-mode: "off"
102-
runner: "ubuntu-latest"
103-
runs-on: ${{ matrix.runner }}
104-
steps:
105-
- uses: actions/checkout@v4
106-
with:
107-
submodules: "recursive"
108-
109-
- name: Set up Bazel
110-
uses: bazel-contrib/[email protected]
111-
with:
112-
# Avoid downloading Bazel every time.
113-
bazelisk-cache: true
114-
# Store build cache per workflow.
115-
disk-cache: ${{ github.workflow }}
116-
# Share repository cache between workflows.
117-
repository-cache: true
118-
119-
- name: Build benchmark example
120-
run: |
121-
bazel build //examples/google_benchmark_bazel:my_benchmark --@codspeed_core//:codspeed_mode=${{ matrix.codspeed-mode }} --@codspeed_core//:strict_warnings=on
122-
123-
- name: Run the benchmarks
124-
uses: CodSpeedHQ/action@main
125-
if: matrix.codspeed-mode != 'off'
126-
with:
127-
mode: ${{ matrix.codspeed-mode }}
128-
run: bazel run //examples/google_benchmark_bazel:my_benchmark --@codspeed_core//:codspeed_mode=${{ matrix.codspeed-mode }} --@codspeed_core//:strict_warnings=on
129-
token: ${{ secrets.CODSPEED_TOKEN }}
130-
131-
cmake-build:
132-
strategy:
133-
fail-fast: false
134-
matrix:
135-
os: [ubuntu-latest, windows-latest]
136-
codspeed-mode: ["off", "walltime"]
137-
runs-on: ${{ matrix.os }}
138-
steps:
139-
- name: Checkout code
140-
uses: actions/checkout@v4
141-
with:
142-
submodules: "recursive"
143-
144-
- name: Cache build
145-
uses: actions/cache@v3
146-
with:
147-
path: examples/google_benchmark_cmake/build
148-
key: ${{ runner.os }}-cmake-build-${{ matrix.codspeed-mode }}-${{ hashFiles('**/CMakeLists.txt') }}
149-
150-
- name: Build benchmark example (Unix)
151-
if: runner.os != 'Windows'
152-
run: |
153-
mkdir -p examples/google_benchmark_cmake/build
154-
cd examples/google_benchmark_cmake/build
155-
cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} ..
156-
make -j
157-
158-
- name: Build benchmark example (Windows)
159-
if: runner.os == 'Windows'
160-
run: |
161-
if (-not (Test-Path examples\google_benchmark_cmake\build)) {
162-
mkdir examples\google_benchmark_cmake\build
163-
}
164-
cd examples\google_benchmark_cmake\build
165-
cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} ..
166-
cmake --build . --config Release
167-
shell: pwsh
168-
169-
bazel-build:
170-
strategy:
171-
fail-fast: false
172-
matrix:
173-
os: [ubuntu-latest, windows-latest]
174-
codspeed-mode: ["off", "walltime"]
175-
bazel-version: ["7.6.2", "8.4.2", "9.0.0-pre.20250921.2"]
176-
runs-on: ${{ matrix.os }}
177-
env:
178-
USE_BAZEL_VERSION: ${{ matrix.bazel-version }}
179-
steps:
180-
- uses: actions/checkout@v4
181-
with:
182-
submodules: "recursive"
183-
184-
- name: Set up Bazel
185-
uses: bazel-contrib/[email protected]
186-
with:
187-
# Avoid downloading Bazel every time.
188-
bazelisk-cache: true
189-
# Store build cache per workflow.
190-
disk-cache: ${{ github.workflow }}
191-
# Share repository cache between workflows.
192-
repository-cache: true
193-
194-
- name: Build benchmark example
195-
run: |
196-
bazel build //examples/google_benchmark_bazel:my_benchmark --@codspeed_core//:codspeed_mode=${{ matrix.codspeed-mode }} --@codspeed_core//:strict_warnings=on
1+
# name: CI
2+
#
3+
# on:
4+
# push:
5+
# branches: [main]
6+
# pull_request:
7+
# workflow_dispatch:
8+
#
9+
# 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 -DCODSPEED_STRICT_WARNINGS=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+
#
53+
# cmake-integration-tests:
54+
# strategy:
55+
# matrix:
56+
# include:
57+
# - codspeed-mode: "instrumentation"
58+
# runner: "ubuntu-latest"
59+
# - codspeed-mode: "walltime"
60+
# runner: "codspeed-macro"
61+
# - codspeed-mode: "off"
62+
# runner: "ubuntu-latest"
63+
# runs-on: ${{ matrix.runner }}
64+
# steps:
65+
# - name: Checkout code
66+
# uses: actions/checkout@v3
67+
# with:
68+
# submodules: "recursive"
69+
#
70+
# - name: Cache build
71+
# uses: actions/cache@v3
72+
# with:
73+
# path: examples/google_benchmark_cmake/build
74+
# key: ${{ runner.os }}-build-${{ matrix.codspeed-mode }}-${{ hashFiles('**/CMakeLists.txt') }}
75+
#
76+
# - name: Create build directory
77+
# run: mkdir -p examples/google_benchmark_cmake/build
78+
#
79+
# - name: Build benchmark example
80+
# run: |
81+
# cd examples/google_benchmark_cmake/build
82+
# cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} -DCODSPEED_STRICT_WARNINGS=ON ..
83+
# make -j
84+
#
85+
# - name: Run the benchmarks
86+
# uses: CodSpeedHQ/action@main
87+
# if: matrix.codspeed-mode != 'off'
88+
# with:
89+
# mode: ${{ matrix.codspeed-mode }}
90+
# run: examples/google_benchmark_cmake/build/benchmark_example
91+
# token: ${{ secrets.CODSPEED_TOKEN }}
92+
#
93+
# bazel-integration-tests:
94+
# strategy:
95+
# matrix:
96+
# include:
97+
# - codspeed-mode: "instrumentation"
98+
# runner: "ubuntu-latest"
99+
# - codspeed-mode: "walltime"
100+
# runner: "codspeed-macro"
101+
# - codspeed-mode: "off"
102+
# runner: "ubuntu-latest"
103+
# runs-on: ${{ matrix.runner }}
104+
# steps:
105+
# - uses: actions/checkout@v4
106+
# with:
107+
# submodules: "recursive"
108+
#
109+
# - name: Set up Bazel
110+
# uses: bazel-contrib/[email protected]
111+
# with:
112+
# # Avoid downloading Bazel every time.
113+
# bazelisk-cache: true
114+
# # Store build cache per workflow.
115+
# disk-cache: ${{ github.workflow }}
116+
# # Share repository cache between workflows.
117+
# repository-cache: true
118+
#
119+
# - name: Build benchmark example
120+
# run: |
121+
# bazel build //examples/google_benchmark_bazel:my_benchmark --@codspeed_core//:codspeed_mode=${{ matrix.codspeed-mode }} --@codspeed_core//:strict_warnings=on
122+
#
123+
# - name: Run the benchmarks
124+
# uses: CodSpeedHQ/action@main
125+
# if: matrix.codspeed-mode != 'off'
126+
# with:
127+
# mode: ${{ matrix.codspeed-mode }}
128+
# run: bazel run //examples/google_benchmark_bazel:my_benchmark --@codspeed_core//:codspeed_mode=${{ matrix.codspeed-mode }} --@codspeed_core//:strict_warnings=on
129+
# token: ${{ secrets.CODSPEED_TOKEN }}
130+
#
131+
# cmake-build:
132+
# strategy:
133+
# fail-fast: false
134+
# matrix:
135+
# os: [ubuntu-latest, windows-latest]
136+
# codspeed-mode: ["off", "walltime"]
137+
# runs-on: ${{ matrix.os }}
138+
# steps:
139+
# - name: Checkout code
140+
# uses: actions/checkout@v4
141+
# with:
142+
# submodules: "recursive"
143+
#
144+
# - name: Cache build
145+
# uses: actions/cache@v3
146+
# with:
147+
# path: examples/google_benchmark_cmake/build
148+
# key: ${{ runner.os }}-cmake-build-${{ matrix.codspeed-mode }}-${{ hashFiles('**/CMakeLists.txt') }}
149+
#
150+
# - name: Build benchmark example (Unix)
151+
# if: runner.os != 'Windows'
152+
# run: |
153+
# mkdir -p examples/google_benchmark_cmake/build
154+
# cd examples/google_benchmark_cmake/build
155+
# cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} ..
156+
# make -j
157+
#
158+
# - name: Build benchmark example (Windows)
159+
# if: runner.os == 'Windows'
160+
# run: |
161+
# if (-not (Test-Path examples\google_benchmark_cmake\build)) {
162+
# mkdir examples\google_benchmark_cmake\build
163+
# }
164+
# cd examples\google_benchmark_cmake\build
165+
# cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} ..
166+
# cmake --build . --config Release
167+
# shell: pwsh
168+
#
169+
# bazel-build:
170+
# strategy:
171+
# fail-fast: false
172+
# matrix:
173+
# os: [ubuntu-latest, windows-latest]
174+
# codspeed-mode: ["off", "walltime"]
175+
# bazel-version: ["7.6.2", "8.4.2", "9.0.0-pre.20250921.2"]
176+
# runs-on: ${{ matrix.os }}
177+
# env:
178+
# USE_BAZEL_VERSION: ${{ matrix.bazel-version }}
179+
# steps:
180+
# - uses: actions/checkout@v4
181+
# with:
182+
# submodules: "recursive"
183+
#
184+
# - name: Set up Bazel
185+
# uses: bazel-contrib/[email protected]
186+
# with:
187+
# # Avoid downloading Bazel every time.
188+
# bazelisk-cache: true
189+
# # Store build cache per workflow.
190+
# disk-cache: ${{ github.workflow }}
191+
# # Share repository cache between workflows.
192+
# repository-cache: true
193+
#
194+
# - name: Build benchmark example
195+
# run: |
196+
# bazel build //examples/google_benchmark_bazel:my_benchmark --@codspeed_core//:codspeed_mode=${{ matrix.codspeed-mode }} --@codspeed_core//:strict_warnings=on

0 commit comments

Comments
 (0)