|
7 | 7 | workflow_dispatch: |
8 | 8 |
|
9 | 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 |
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 | 10 | cmake-integration-tests: |
54 | 11 | strategy: |
55 | 12 | matrix: |
56 | 13 | include: |
57 | 14 | - codspeed-mode: "instrumentation" |
58 | 15 | 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" |
63 | 20 | runs-on: ${{ matrix.runner }} |
64 | 21 | steps: |
65 | 22 | - name: Checkout code |
@@ -96,10 +53,10 @@ jobs: |
96 | 53 | include: |
97 | 54 | - codspeed-mode: "instrumentation" |
98 | 55 | 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" |
103 | 60 | runs-on: ${{ matrix.runner }} |
104 | 61 | steps: |
105 | 62 | - uses: actions/checkout@v4 |
@@ -127,59 +84,3 @@ jobs: |
127 | 84 | mode: ${{ matrix.codspeed-mode }} |
128 | 85 | run: bazel run //examples/google_benchmark_bazel:my_benchmark --//core:codspeed_mode=${{ matrix.codspeed-mode }} |
129 | 86 | 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