-
Notifications
You must be signed in to change notification settings - Fork 11
47 lines (38 loc) · 1.65 KB
/
Copy pathbvt-msvc.yml
File metadata and controls
47 lines (38 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
on:
workflow_call:
workflow_dispatch:
jobs:
bvt-msvc:
runs-on: windows-2025
steps:
- uses: actions/checkout@v7
- name: Install meson
run: pipx install meson
- name: Add cl.exe to PATH
uses: ilammy/msvc-dev-cmd@v1
- name: Check toolchain versions
run: |
cmake --version
meson --version
bazel version
- name: Build and run test with MSVC on cmake
run: |
cmake -B build/cmake -DCMAKE_CXX_STANDARD=23 -DPROXY_BUILD_MODULES=TRUE `
&& cmake --build build/cmake --config Release -j `
&& ctest --test-dir build/cmake -C Release -j `
&& mkdir build/cmake/drop > $null `
&& .\tools\dump_build_env_msvc.ps1 -OutputPath build/cmake/drop/env-info.json
- name: Build and run test with MSVC on meson
run: |
meson setup build/meson --buildtype=release -Dtests=enabled -Dbenchmarks=enabled --vsenv
meson test -C build/meson
meson test -C build/meson --benchmark --test-args=--benchmark_list_tests=true
- name: Build and Run test with MSVC on bazel
run: bazel test --lockfile_mode=error //tests:proxy_tests //benchmarks:proxy_benchmarks //docs/...
- name: Run benchmarks
run: build/cmake/benchmarks/Release/msft_proxy_benchmarks.exe --benchmark_min_warmup_time=0.1 --benchmark_min_time=0.1s --benchmark_repetitions=30 --benchmark_enable_random_interleaving=true --benchmark_report_aggregates_only=true --benchmark_format=json > build/cmake/drop/benchmarking-results.json
- name: Archive benchmarking results
uses: actions/upload-artifact@v7
with:
name: drop-msvc
path: build/cmake/drop/