Skip to content

Commit d446f7d

Browse files
committed
ci: update workflows
1 parent 9fc5181 commit d446f7d

File tree

4 files changed

+43
-30
lines changed

4 files changed

+43
-30
lines changed

.github/workflows/amd64_linux_bazel.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: amd64 Linux Bazel
33

44
on: [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.
711
jobs:
812
native:
@@ -27,7 +31,7 @@ jobs:
2731
- cpp: {version: 20}
2832
bazel: {compilation_mode: dbg}
2933
fail-fast: false
30-
name: Linux•Bazel(${{ matrix.bazel.compilation_mode }})•C++${{ matrix.cpp.version }}•Python${{ matrix.python.version }}
34+
name: Linux•Bazel(${{matrix.bazel.compilation_mode}})•C++${{matrix.cpp.version}}•Python${{matrix.python.version}}
3135
runs-on: ubuntu-latest
3236
steps:
3337
- uses: actions/checkout@v5
@@ -36,34 +40,35 @@ jobs:
3640
- name: Setup Python
3741
uses: actions/setup-python@v6
3842
with:
39-
python-version: ${{ matrix.python.version }}
43+
python-version: ${{matrix.python.version}}
4044
- name: Check Python
4145
run: |
4246
python --version
4347
python -m platform
4448
- uses: bazel-contrib/[email protected]
4549
with:
4650
bazelisk-cache: true
47-
disk-cache: ${{ github.workflow }}
51+
disk-cache: ${{github.workflow}}
4852
repository-cache: true
4953
- name: Check Bazel
5054
run: bazel version
5155
- name: Build
5256
run: >
5357
cd examples/basic &&
5458
bazel build
55-
-c ${{ matrix.bazel.compilation_mode }}
56-
--cxxopt=${{ matrix.cpp.flags }} --host_cxxopt=${{ matrix.cpp.flags }}
59+
-c ${{matrix.bazel.compilation_mode}}
60+
--cxxopt=${{matrix.cpp.flags}} --host_cxxopt=${{ matrix.cpp.flags }}
5761
--subcommands=pretty_print
5862
--enable_bzlmod
5963
//...
6064
- name: Test
6165
run: >
6266
cd examples/basic &&
6367
bazel test
64-
-c ${{ matrix.bazel.compilation_mode }}
65-
--cxxopt=${{ matrix.cpp.flags }} --host_cxxopt=${{ matrix.cpp.flags }}
68+
-c ${{matrix.bazel.compilation_mode}}
69+
--cxxopt=${{matrix.cpp.flags}} --host_cxxopt=${{ matrix.cpp.flags }}
6670
--subcommands=pretty_print
71+
--test_output=all
6772
--enable_bzlmod
6873
//...
6974

.github/workflows/amd64_macos_bazel.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: amd64 MacOS Bazel
33

44
on: [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.
711
jobs:
812
native:
@@ -27,7 +31,7 @@ jobs:
2731
- cpp: {version: 20}
2832
bazel: {compilation_mode: dbg}
2933
fail-fast: false
30-
name: MacOS•Bazel(${{ matrix.bazel.compilation_mode }})•C++${{ matrix.cpp.version }}•Python${{ matrix.python.version }}
34+
name: MacOS•Bazel(${{matrix.bazel.compilation_mode}})•C++${{matrix.cpp.version}}•Python${{matrix.python.version}}
3135
runs-on: macos-13 # last macos intel based runner
3236
steps:
3337
- uses: actions/checkout@v5
@@ -39,7 +43,7 @@ jobs:
3943
- name: Setup Python
4044
uses: actions/setup-python@v6
4145
with:
42-
python-version: ${{ matrix.python.version }}
46+
python-version: ${{matrix.python.version}}
4347
- name: Check Python
4448
run: |
4549
python --version
@@ -50,17 +54,17 @@ jobs:
5054
run: >
5155
cd examples/basic &&
5256
bazel build
53-
-c ${{ matrix.bazel.compilation_mode }}
54-
--cxxopt=${{ matrix.cpp.flags }} --host_cxxopt=${{ matrix.cpp.flags }}
57+
-c ${{matrix.bazel.compilation_mode}}
58+
--cxxopt=${{matrix.cpp.flags}} --host_cxxopt=${{ matrix.cpp.flags }}
5559
--subcommands=pretty_print
5660
--enable_bzlmod
5761
//...
5862
- name: Test
5963
run: >
6064
cd examples/basic &&
6165
bazel test
62-
-c ${{ matrix.bazel.compilation_mode }}
63-
--cxxopt=${{ matrix.cpp.flags }} --host_cxxopt=${{ matrix.cpp.flags }}
66+
-c ${{matrix.bazel.compilation_mode}}
67+
--cxxopt=${{matrix.cpp.flags}} --host_cxxopt=${{ matrix.cpp.flags }}
6468
--subcommands=pretty_print
6569
--enable_bzlmod
6670
//...

.github/workflows/amd64_windows_bazel.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ name: amd64 Windows Bazel
33

44
on: [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.
711
jobs:
812
native:
913
strategy:
1014
matrix:
11-
runner: [
12-
windows-2022,
13-
#windows-2019,
14-
]
1515
bazel: [
1616
{compilation_mode: opt},
1717
{compilation_mode: dbg},
@@ -35,14 +35,14 @@ jobs:
3535
- cpp: {version: 20}
3636
bazel: {compilation_mode: dbg}
3737
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 }}
38+
name: Windows•Bazel(${{matrix.bazel.compilation_mode}})•C++${{ matrix.cpp.version }}•Python${{matrix.python.version}}
39+
runs-on: windows-2022
4040
steps:
4141
- uses: actions/checkout@v5
4242
- name: Setup Python
4343
uses: actions/setup-python@v6
4444
with:
45-
python-version: ${{ matrix.python.version }}
45+
python-version: ${{matrix.python.version}}
4646
- name: Check Python
4747
run: |
4848
python --version
@@ -55,17 +55,17 @@ jobs:
5555
run: >
5656
cd examples/basic &&
5757
bazel build
58-
-c ${{ matrix.bazel.compilation_mode }}
59-
--cxxopt=${{ matrix.cpp.flags }} --host_cxxopt=${{ matrix.cpp.flags }}
58+
-c ${{matrix.bazel.compilation_mode}}
59+
--cxxopt=${{matrix.cpp.flags}} --host_cxxopt=${{ matrix.cpp.flags }}
6060
--subcommands=pretty_print
6161
--enable_bzlmod
6262
//...
6363
- name: Test
6464
run: >
6565
cd examples/basic &&
6666
bazel test
67-
-c ${{ matrix.bazel.compilation_mode }}
68-
--cxxopt=${{ matrix.cpp.flags }} --host_cxxopt=${{ matrix.cpp.flags }}
67+
-c ${{matrix.bazel.compilation_mode}}
68+
--cxxopt=${{matrix.cpp.flags}} --host_cxxopt=${{ matrix.cpp.flags }}
6969
--subcommands=pretty_print
7070
--enable_bzlmod
7171
//...

.github/workflows/arm64_macos_bazel.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: arm64 MacOS Bazel
33

44
on: [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.
711
jobs:
812
native:
@@ -27,7 +31,7 @@ jobs:
2731
- cpp: {version: 20}
2832
bazel: {compilation_mode: dbg}
2933
fail-fast: false
30-
name: MacOS•Bazel(${{ matrix.bazel.compilation_mode }})•C++${{ matrix.cpp.version }}•Python${{ matrix.python.version }}
34+
name: MacOS•Bazel(${{matrix.bazel.compilation_mode}})•C++${{matrix.cpp.version}}•Python${{matrix.python.version}}
3135
runs-on: macos-latest
3236
steps:
3337
- uses: actions/checkout@v5
@@ -39,7 +43,7 @@ jobs:
3943
- name: Setup Python
4044
uses: actions/setup-python@v6
4145
with:
42-
python-version: ${{ matrix.python.version }}
46+
python-version: ${{matrix.python.version}}
4347
- name: Check Python
4448
run: |
4549
python --version
@@ -50,17 +54,17 @@ jobs:
5054
run: >
5155
cd examples/basic &&
5256
bazel build
53-
-c ${{ matrix.bazel.compilation_mode }}
54-
--cxxopt=${{ matrix.cpp.flags }} --host_cxxopt=${{ matrix.cpp.flags }}
57+
-c ${{matrix.bazel.compilation_mode}}
58+
--cxxopt=${{matrix.cpp.flags}} --host_cxxopt=${{ matrix.cpp.flags }}
5559
--subcommands=pretty_print
5660
--enable_bzlmod
5761
//...
5862
- name: Test
5963
run: >
6064
cd examples/basic &&
6165
bazel test
62-
-c ${{ matrix.bazel.compilation_mode }}
63-
--cxxopt=${{ matrix.cpp.flags }} --host_cxxopt=${{ matrix.cpp.flags }}
66+
-c ${{matrix.bazel.compilation_mode}}
67+
--cxxopt=${{matrix.cpp.flags}} --host_cxxopt=${{ matrix.cpp.flags }}
6468
--subcommands=pretty_print
6569
--enable_bzlmod
6670
//...

0 commit comments

Comments
 (0)