Skip to content

Commit b51fe86

Browse files
committed
ci: linux rework
1 parent e2148f8 commit b51fe86

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

.github/workflows/amd64_linux_bazel.yml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,17 @@ jobs:
1212
native:
1313
strategy:
1414
matrix:
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"},
2117
{version: 17, flags: "-std=c++17"},
2218
{version: 20, flags: "-std=c++20"},
2319
]
2420
python: [
2521
{version: '3.11'},
22+
{version: '3.12'},
2623
]
27-
exclude:
28-
# only test `-c dbg` build with C++17
29-
- cpp: {version: 14}
30-
bazel: {compilation_mode: dbg}
31-
- cpp: {version: 20}
32-
bazel: {compilation_mode: dbg}
3324
fail-fast: false
34-
name: Linux•Bazel(${{matrix.bazel.compilation_mode}})•C++${{matrix.cpp.version}}•Python${{matrix.python.version}}
25+
name: Linux•Bazel•C++${{matrix.cpp.version}}•Python${{matrix.python.version}}•${{matrix.examples.name}}
3526
runs-on: ubuntu-latest
3627
steps:
3728
- uses: actions/checkout@v5
@@ -54,22 +45,21 @@ jobs:
5445
run: bazel version
5546
- name: Build
5647
run: >
57-
cd examples/basic &&
48+
cd examples/${{matrix.examples.name}} &&
5849
bazel build
59-
-c ${{matrix.bazel.compilation_mode}}
50+
--config=ci
51+
--@rules_python//python/config_settings:python_version=${{matrix.python.version}}
6052
--cxxopt=${{matrix.cpp.flags}} --host_cxxopt=${{ matrix.cpp.flags }}
6153
--subcommands=pretty_print
62-
--enable_bzlmod
6354
//...
6455
- name: Test
6556
run: >
66-
cd examples/basic &&
57+
cd examples/${{matrix.examples.name}} &&
6758
bazel test
68-
-c ${{matrix.bazel.compilation_mode}}
59+
--config=ci
60+
--@rules_python//python/config_settings:python_version=${{matrix.python.version}}
6961
--cxxopt=${{matrix.cpp.flags}} --host_cxxopt=${{ matrix.cpp.flags }}
7062
--subcommands=pretty_print
71-
--test_output=all
72-
--enable_bzlmod
7363
//...
7464
7565
amd64_linux_bazel:

0 commit comments

Comments
 (0)