@@ -3,46 +3,34 @@ name: amd64 Windows Bazel
33
44on : [push, pull_request, workflow_dispatch]
55
6+ concurrency :
7+ group : ${{github.workflow}}-${{github.ref}}
8+ cancel-in-progress : true
9+
610# Building using the github runner environement directly.
711jobs :
812 native :
913 strategy :
1014 matrix :
11- runner : [
12- windows-2022,
13- # windows-2019,
14- ]
15- bazel : [
16- {compilation_mode: opt},
17- {compilation_mode: dbg},
18- ]
15+ examples : [{name: basic}, {name: embed}]
1916 cpp : [
20- {version: 14, flags: "/std:c++14"},
17+ # {version: 14, flags: "/std:c++14"},
2118 {version: 17, flags: "/std:c++17"},
22- # {version: 20, flags: "/std:c++20"},
19+ {version: 20, flags: "/std:c++20"},
2320 ]
2421 python : [
2522 {version: '3.11'},
23+ {version: '3.12'},
2624 ]
27- exclude :
28- - runner : windows-2019
29- cpp : {version: 20}
30- # only test -c dbg with VS 2022 version 17 to save compute time
31- - runner : windows-2019
32- bazel : {compilation_mode: dbg}
33- - cpp : {version: 14}
34- bazel : {compilation_mode: dbg}
35- - cpp : {version: 20}
36- bazel : {compilation_mode: dbg}
37- fail-fast : false # Don't cancel all jobs if one fails.
38- name : ${{ matrix.runner }}•Bazel(${{ matrix.bazel.compilation_mode }})•C++${{ matrix.cpp.version }}•Python${{ matrix.python.version }}
39- runs-on : ${{ matrix.runner }}
25+ fail-fast : false
26+ name : Windows•Bzl•C++${{matrix.cpp.version}}•Py${{matrix.python.version}}•${{matrix.examples.name}}
27+ runs-on : windows-2022
4028 steps :
4129 - uses : actions/checkout@v5
4230 - name : Setup Python
4331 uses : actions/setup-python@v6
4432 with :
45- python-version : ${{ matrix.python.version }}
33+ python-version : ${{matrix.python.version}}
4634 - name : Check Python
4735 run : |
4836 python --version
@@ -53,21 +41,21 @@ jobs:
5341 run : bazel version
5442 - name : Build
5543 run : >
56- cd examples/basic &&
44+ cd examples/${{matrix.examples.name}} &&
5745 bazel build
58- -c ${{ matrix.bazel.compilation_mode }}
59- --cxxopt=${{ matrix.cpp.flags }} --host_cxxopt=${{ matrix.cpp.flags }}
46+ --config=ci
47+ --@rules_python//python/config_settings:python_version=${{matrix.python.version}}
48+ --cxxopt=${{matrix.cpp.flags}} --host_cxxopt=${{ matrix.cpp.flags }}
6049 --subcommands=pretty_print
61- --enable_bzlmod
6250 //...
6351 - name : Test
6452 run : >
65- cd examples/basic &&
53+ cd examples/${{matrix.examples.name}} &&
6654 bazel test
67- -c ${{ matrix.bazel.compilation_mode }}
68- --cxxopt=${{ matrix.cpp.flags }} --host_cxxopt=${{ matrix.cpp.flags }}
55+ --config=ci
56+ --@rules_python//python/config_settings:python_version=${{matrix.python.version}}
57+ --cxxopt=${{matrix.cpp.flags}} --host_cxxopt=${{ matrix.cpp.flags }}
6958 --subcommands=pretty_print
70- --enable_bzlmod
7159 //...
7260
7361 amd64_windows_bazel :
0 commit comments